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

"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



view thread (3+ messages)

Message-ID: <12970.1071504601@sss.pgh.pa.us>
Permalink:  ../12970.1071504601@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12970.1071504601@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, uwe@oss4u.com, ganesh@magnusquest.com
  Subject: Re: Shutdown pg db
  In-Reply-To: <12970.1071504601@sss.pgh.pa.us>
  References: <003301c3c2e7$f355b460$5400a8c0@headquarters.mq.com> <200312150109.53153.uwe@oss4u.com> <12970.1071504601@sss.pgh.pa.us>

* 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