Re: When starting postgres, it hangs like it is still connected to stdout

From: Joe Van Dyk <joe(at)tanga(dot)com>
To: Susan Cassidy <susan(dot)cassidy(at)decisionsciencescorp(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: When starting postgres, it hangs like it is still connected to stdout
Date: 2014-01-07 20:00:20
Message-ID: CACfv+p+PA--y6A-xT4_U+KY3ru1n7FRD=GEc5xHNcBqZSTshOg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jan 7, 2014 at 11:47 AM, Susan Cassidy <
susan(dot)cassidy(at)decisionsciencescorp(dot)com> wrote:

> When I start postgres using postgres -D $PGDATA, it hangs, and I see that
> postgres and all the other attendant processes are running, but I never get
> my prompt back.
>
> If I hit ctl/C, postgres ends running.
>
> I can't seem to figure out why.
>
> This is postgres 9.2.
>
> What am I doing wrong?
>
> Thanks,
> Susan
>

$ postgres -D $PGDATA &

should start postgres in the background. (the '&' at the end tells it to
put the process in the backgroudn)

If you want it running outside your shell, you should use pg_ctl.
$ pg_ctl --help
pg_ctl is a utility to initialize, start, stop, or control a PostgreSQL
server.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Susan Cassidy 2014-01-07 20:01:38 Re: When starting postgres, it hangs like it is still connected to stdout
Previous Message Raymond O'Donnell 2014-01-07 19:59:22 Re: When starting postgres, it hangs like it is still connected to stdout