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

From: Susan Cassidy <susan(dot)cassidy(at)decisionsciencescorp(dot)com>
To: Shaun Thomas <sthomas(at)optionshouse(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:01:38
Message-ID: CAE3Q8omLBELtK-Wk-5_3ns_j=Pe-5LeTeh6rWUj9K7Bsrw1png@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The initdb command said I could use that command, but pg_ctl works fine
now. I should have tried that before. I have always used pg_ctl in the
past, don't know why I just went with the postgres command.

Thanks,
Susan

On Tue, Jan 7, 2014 at 11:50 AM, Shaun Thomas <sthomas(at)optionshouse(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.
>
> Don't start PostgreSQL with the 'postgres' command. That's the name of the
> actual server process. You want to use the control script, normally named
> pg_ctl. You call it like this:
>
> pg_ctl -D $PGDATA start
>
> Stop it like this:
>
> pg_ctl -D $PGDATA stop
>
> ______________________________________________
>
> See http://www.peak6.com/email_disclaimer/ for terms and conditions
> related to this email
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2014-01-07 20:02:38 Server Crash: Issues Re-starting Postgres
Previous Message Joe Van Dyk 2014-01-07 20:00:20 Re: When starting postgres, it hangs like it is still connected to stdout