X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 78DD1474E53 for ; Mon, 17 Feb 2003 21:12:49 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 7A9FF474E42 for ; Mon, 17 Feb 2003 21:12:48 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h1I2Cm5u017333; Mon, 17 Feb 2003 21:12:49 -0500 (EST) To: "Ed L." Cc: Laurette Cisneros , pgsql-admin@postgresql.org Subject: Re: server won't shutdown In-reply-to: <200302171725.11546.pggeneral@bluepolka.net> References: <200302171647.42130.pgadmin@bluepolka.net> <16389.1045526983@sss.pgh.pa.us> <200302171725.11546.pggeneral@bluepolka.net> Comments: In-reply-to "Ed L." message dated "Mon, 17 Feb 2003 17:25:11 -0700" Date: Mon, 17 Feb 2003 21:12:48 -0500 Message-ID: <17332.1045534368@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/276 X-Sequence-Number: 7474 "Ed L." 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