Thread: Shut down postgres server...

Shut down postgres server...

From
celoftis@unity.ncsu.edu
Date:
What's the appropiate command to shut down the Postgres server (postmaster)?

Charles Loftis
celoftis@unity.ncsu.edu



Re: Shut down postgres server...

From
Josh Berkus
Date:
Charles,

> What's the appropiate command to shut down the Postgres server
> (postmaster)?

$PGBIN/pg_ctl -D $PGDATA stop

where $PGBIN is your PG program directory, and $PGDATA is your database
directory.   See the documentation, under "Server Programs-->pg_ctl" for more
instructions.

--
Josh Berkus
Aglio Database Solutions
San Francisco

Re: Shut down postgres server...

From
"Scott Marlowe"
Date:
On Sun, 2004-06-06 at 18:58, celoftis@unity.ncsu.edu wrote:
> What's the appropiate command to shut down the Postgres server (postmaster)?

as the postgres super user, you can shut it down with:

pg_ctl stop

If you are on an RPM based system like redhat, as the super user (i.e.
root) enter the command:

service postgresql stop