Shut down postgres server...

Поиск
Список
Период
Сортировка
Искать

Shut down postgres server...

От:
celoftis@unity.ncsu.edu
Дата:
What's the appropiate command to shut down the Postgres server (postmaster)?

Charles Loftis
celoftis@unity.ncsu.edu


Re: Shut down postgres server...

От:
Josh Berkus <josh@agliodbs.com>
Дата:
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...

От:
"Scott Marlowe" <smarlowe@qwest.net>
Дата:
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

FAQ