Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 03B1C47605C; Tue, 13 Aug 2002 12:20:33 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 698F6475F6A; Tue, 13 Aug 2002 12:20:32 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g7DGKTVk026785; Tue, 13 Aug 2002 12:20:29 -0400 (EDT) To: "Robert M. Meyer" Cc: nickf@ontko.com, pgsql-jdbc , pgsql-admin Subject: Re: Leftover processes on shutdown - Debian+JDBC In-reply-to: <1029252347.28282.15.camel@skymaster> References: <1029252347.28282.15.camel@skymaster> Comments: In-reply-to "Robert M. Meyer" message dated "13 Aug 2002 11:25:47 -0400" Date: Tue, 13 Aug 2002 12:20:29 -0400 Message-ID: <26784.1029255629@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/147 X-Sequence-Number: 5262 "Robert M. Meyer" writes: > 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 A much safer choice would be "-m fast". The default ("-m smart") doesn't shut down the server until all clients voluntarily disconnect. If you have tomcat holding persistent connections open then that's not what you want. "-m fast" forcibly disconnects clients and then does a clean database shutdown. This is generally what you want if you have persistent-connection clients. "-m immediate" is the equivalent of the big red EMERGENCY STOP button found in places like power plant control rooms. If you are in the habit of hitting that as a routine measure, you need to have your operator's permit revoked. regards, tom lane