pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ed L. <pgsql@bluepolka.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Ed L. <pggeneral@bluepolka.net>
To: Laurette Cisneros <laurette@nextbus.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: server won't shutdown
Date: Wed, 19 Feb 2003 10:54:23 -0700
Message-ID: <200302191054.23651.pgsql@bluepolka.net> (raw)
In-Reply-To: <20307.1045537577@sss.pgh.pa.us>
References: <Pine.LNX.4.44.0302171414350.20323-100000@visor.corp.nextbus.com>
	<17332.1045534368@sss.pgh.pa.us>
	<20307.1045537577@sss.pgh.pa.us>

On Monday February 17 2003 8:06, Tom Lane wrote:
>
> You can demonstrate the problem by doing 'LISTEN foo' in one psql
> and then 'NOTIFY foo' in another, then attempting a fast shutdown
> --- the first psql's backend will ignore you until the psql session
> does something. The same path can be followed without LISTEN if the
> first psql is simply left idle while the second one does a bunch of
> catalog-updating work (a few cycles of VACUUM ANALYZE usually
> suffice).

Thanks, Tom.  Your diagnosis sounds consistent with our experience.  I 
was able to reproduce it with the latter approach of running a bunch 
of VACUUM ANALYZE commands.  However, I have been unable to 
demonstrate this on 7.3.1 using the following sequence:

session #1 launches psql
session #2 launches psql
session #1 does "listen foo;"
session #2 does "notify foo;"
session #3 does a fast shutdown;

All backends immediately shutdown, no hanging.

Anyway, I'm applying the patch and will advise if any further issues 
show up.

Ed




view thread (17+ messages)  latest in thread

Message-ID: <200302191054.23651.pgsql@bluepolka.net>
Permalink:  ../200302191054.23651.pgsql@bluepolka.net/
Also on:    postgresql.org/message-id/200302191054.23651.pgsql@bluepolka.net

 · 

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: pgsql@bluepolka.net, tgl@sss.pgh.pa.us, pggeneral@bluepolka.net, laurette@nextbus.com
  Subject: Re: server won't shutdown
  In-Reply-To: <200302191054.23651.pgsql@bluepolka.net>
  References: <Pine.LNX.4.44.0302171414350.20323-100000@visor.corp.nextbus.com> <17332.1045534368@sss.pgh.pa.us> <20307.1045537577@sss.pgh.pa.us> <200302191054.23651.pgsql@bluepolka.net>

* 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