pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedShutdown pg db
3+ messages / 3 participants
[nested] [flat]
* Shutdown pg db
@ 2003-12-15 08:46 Ganesan Kanavathy <ganesh@magnusquest.com>
2003-12-15 09:09 ` Re: Shutdown pg db Uwe C. Schroeder <uwe@oss4u.com>
0 siblings, 1 reply; 3+ messages in thread
From: Ganesan Kanavathy @ 2003-12-15 08:46 UTC (permalink / raw)
To: pgsql-admin
How to properly shutdown pg db server?
Is the below command safe to shutdown the pg db server?
#killall -9 postmaster
pg_ctl does not seems work on server?
Regards,
Ganesan
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Shutdown pg db
2003-12-15 08:46 Shutdown pg db Ganesan Kanavathy <ganesh@magnusquest.com>
@ 2003-12-15 09:09 ` Uwe C. Schroeder <uwe@oss4u.com>
2003-12-15 16:10 ` Re: Shutdown pg db Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Uwe C. Schroeder @ 2003-12-15 09:09 UTC (permalink / raw)
To: Ganesan Kanavathy <ganesh@magnusquest.com>; pgsql-admin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NEVER kill -9 a postmaster
Althoug funny enough it pretty often tolerates that kind of killing, it will
not allow the process to properly shut down the database. So you may or may
not be lucky to end up with a good database.
Use something like
/usr/bin/pg_ctl stop -D $PGDATA -s -m fast
if you have to kick out current database connections and not wait for them to
finish.
UC
On Monday 15 December 2003 12:46 am, Ganesan Kanavathy wrote:
> How to properly shutdown pg db server?
>
> Is the below command safe to shutdown the pg db server?
>
> #killall -9 postmaster
>
> pg_ctl does not seems work on server?
>
> Regards,
> Ganesan
- --
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/3XphjqGXBvRToM4RAlkyAJ9eWfVCfmQ+igPOKn2lw0mvbkfYMACfSTXf
anWNcf1qnT5x86ZHG0GqQZ8=
=X7IT
-----END PGP SIGNATURE-----
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Shutdown pg db
2003-12-15 08:46 Shutdown pg db Ganesan Kanavathy <ganesh@magnusquest.com>
2003-12-15 09:09 ` Re: Shutdown pg db Uwe C. Schroeder <uwe@oss4u.com>
@ 2003-12-15 16:10 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2003-12-15 16:10 UTC (permalink / raw)
To: Uwe C. Schroeder <uwe@oss4u.com>; +Cc: Ganesan Kanavathy <ganesh@magnusquest.com>; pgsql-admin
"Uwe C. Schroeder" <uwe@oss4u.com> writes:
> NEVER kill -9 a postmaster
> Althoug funny enough it pretty often tolerates that kind of killing, it will
> not allow the process to properly shut down the database. So you may or may
> not be lucky to end up with a good database.
The database is safe enough. What you are likely to have trouble with
is starting a fresh postmaster --- kill -9 prevents the postmaster from
releasing shared memory, for example, and you may not have a high enough
SHMMAX to just go and create another shared memory segment. Do it a few
times in a row and you'll almost surely overrun SHMMAX. This will leave
you having to manually remove the old shared memory, or reboot the
machine, before you can restart Postgres.
Use the documented methods for shutting down Postgres.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2003-12-15 16:10 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-15 08:46 Shutdown pg db Ganesan Kanavathy <ganesh@magnusquest.com>
2003-12-15 09:09 ` Uwe C. Schroeder <uwe@oss4u.com>
2003-12-15 16:10 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox