X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1DABF474E53; Mon, 17 Feb 2003 22:42:04 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 77D79474E42; Mon, 17 Feb 2003 22:42:03 -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 h1I3ft5u020481; Mon, 17 Feb 2003 22:41:56 -0500 (EST) To: "Chad R. Larson" Cc: "Robert M. Meyer" , nickf@ontko.com, pgsql-jdbc , pgsql-admin Subject: Re: Leftover processes on shutdown - Debian+JDBC In-reply-to: <4.2.2.20020813103901.00abb840@ecint.ecinet.com> References: <4.2.2.20020813103901.00abb840@ecint.ecinet.com> Comments: In-reply-to "Chad R. Larson" message dated "Tue, 13 Aug 2002 10:44:32 -0700" Date: Mon, 17 Feb 2003 22:41:55 -0500 Message-ID: <20480.1045539715@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/278 X-Sequence-Number: 7476 "Chad R. Larson" writes: > At 08:25 AM 8/13/02 , Robert M. Meyer wrote: >> I had the same problem. I rewrote my shutdown script to call 'pg_ctl -m >> immediate'. So far, I haven't seen any damage because of it and we always >> restart tomcat at some point in the middle of the night, anyway. > We're running PostgreSQL as a backend to a J2SE server (with Macromedia > JRun instead of Tomcat). When we converted our Sun Enterprise servers into > a cluster (Veritas VCS) we had similar problems. We were using the "fast" > option on a shutdown, but switchover in the cluster would hang until we > changed the "fast" to "immediate". We'd prefer "fast", but it does not > seem to work exactly as documented. > Solaris 2.6, PostgreSQL 7.1.2, VCS 1.1. FYI, I think the cause of this has finally been identified -- a client that sits idle for long enough to let the SI buffer overrun means that its connected backend will ignore "fast" shutdown requests for as long as the client continues to do nothing. The bug exists in 7.1 through current. I just posted a patch to pgsql-admin. regards, tom lane