pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Qing Zhao <qzhao@supplyfx.com>
Cc: pgsql-admin@postgresql.org, Kai Mildenberger <kai@supplyfx.com>
Subject: Re: killing a hung postgres process brings down the Postgres database server on MAC OS X!
Date: Mon, 27 Sep 2004 19:40:18 -0400
Message-ID: <8160.1096328418@sss.pgh.pa.us> (raw)
In-Reply-To: <6D0568B0-10D9-11D9-8F83-000A95AB8896@supplyfx.com>
References: <6D0568B0-10D9-11D9-8F83-000A95AB8896@supplyfx.com>

Qing Zhao <qzhao@supplyfx.com> writes:
> If we do "kill -9 pid" to get rid of the deserted process, it bring
> down the PG database server entirely.

It's supposed to.

> Is there a way to kill the dead processes/thread without really affect 
> the PG server?

It will time out by itself eventually (order of a couple hours probably
--- it depends on your TCP stack).  You can try a SIGINT or SIGTERM.
SIGINT is safe but may or may not cause the backend to quit.  SIGTERM
will make it quit, but I'm not prepared to guarantee that SIGTERM won't
have bad side effects.  I'd suggest waiting...

			regards, tom lane



view thread (3+ messages)

Message-ID: <8160.1096328418@sss.pgh.pa.us>
Permalink:  ../8160.1096328418@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8160.1096328418@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, qzhao@supplyfx.com, kai@supplyfx.com
  Subject: Re: killing a hung postgres process brings down the Postgres database server on MAC OS X!
  In-Reply-To: <8160.1096328418@sss.pgh.pa.us>
  References: <6D0568B0-10D9-11D9-8F83-000A95AB8896@supplyfx.com> <8160.1096328418@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