Re: Shutdown pg db

From: "Uwe C(dot) Schroeder" <uwe(at)oss4u(dot)com>
To: "Ganesan Kanavathy" <ganesh(at)magnusquest(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Shutdown pg db
Date: 2003-12-15 09:09:53
Message-ID: 200312150109.53153.uwe@oss4u.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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-----

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Sai Hertz And Control Systems 2003-12-15 09:19:34 Re: FoxPro Vs. PostgreSQL
Previous Message Ganesan Kanavathy 2003-12-15 08:46:30 Shutdown pg db