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

From: Shaun Thomas <sthomas(at)optionshouse(dot)com>
To: 'Susan Cassidy' <susan(dot)cassidy(at)decisionsciencescorp(dot)com>, "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 19:50:44
Message-ID: 0683F5F5A5C7FE419A752A034B4A0B9797670675@sswchi5pmbx2.peak6.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joe Van Dyk 2014-01-07 19:55:08 Re: Is there a way to return "true"/"false" string for boolean type?
Previous Message Susan Cassidy 2014-01-07 19:47:36 When starting postgres, it hangs like it is still connected to stdout