Re: server won't shutdown

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ed L(dot)" <pggeneral(at)bluepolka(dot)net>
Cc: Laurette Cisneros <laurette(at)nextbus(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: server won't shutdown
Date: 2003-02-18 02:12:48
Message-ID: 17332.1045534368@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Ed L." <pggeneral(at)bluepolka(dot)net> writes:
> On Monday February 17 2003 5:09, Tom Lane wrote:
>> Hm, I suddenly have a theory. Do you guys use LISTEN/NOTIFY in the
>> databases that are exhibiting the problem?

> Not using LISTEN/NOTIFY here, at least not of which I'm aware. I'll
> dig a little more and let you know if I find differently.

Oh, duh! You don't need to be using NOTIFY explicitly --- you just have
to sit idle long enough to make the SI buffer overflow, and the system
will try to NOTIFY your backend anyway to make it read the SI message
buffer. Which is the path I was looking at --- that will leave
ImmediateInterruptOK false, preventing response to SIGTERM if the client
still hasn't done anything by the time it comes.

Patch forthcoming.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-02-18 03:06:17 Re: server won't shutdown
Previous Message Bruce Momjian 2003-02-18 01:51:01 Re: pg_restore problem with 7.3.1