pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Uwe C. Schroeder <uwe@oss4u.com>
To: Ganesan Kanavathy <ganesh@magnusquest.com>
To: pgsql-admin@postgresql.org
Subject: Re: Shutdown pg db
Date: Mon, 15 Dec 2003 01:09:53 -0800
Message-ID: <200312150109.53153.uwe@oss4u.com> (raw)
In-Reply-To: <003301c3c2e7$f355b460$5400a8c0@headquarters.mq.com>
References: <003301c3c2e7$f355b460$5400a8c0@headquarters.mq.com>

-----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-----




view thread (3+ messages)  latest in thread

Message-ID: <200312150109.53153.uwe@oss4u.com>
Permalink:  ../200312150109.53153.uwe@oss4u.com/
Also on:    postgresql.org/message-id/200312150109.53153.uwe@oss4u.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: uwe@oss4u.com, ganesh@magnusquest.com
  Subject: Re: Shutdown pg db
  In-Reply-To: <200312150109.53153.uwe@oss4u.com>
  References: <003301c3c2e7$f355b460$5400a8c0@headquarters.mq.com> <200312150109.53153.uwe@oss4u.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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