Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7DB0D475994 for ; Wed, 14 Aug 2002 18:16:35 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id E6692475917 for ; Wed, 14 Aug 2002 18:16:34 -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 g7EMGSVk016783; Wed, 14 Aug 2002 18:16:28 -0400 (EDT) To: nickf@ontko.com Cc: "Chad R. Larson" , "pgsql-admin" Subject: Re: Leftover processes on shutdown - Debian+JDBC In-reply-to: References: Comments: In-reply-to "Nick Fankhauser" message dated "Wed, 14 Aug 2002 16:32:30 -0500" Date: Wed, 14 Aug 2002 18:16:28 -0400 Message-ID: <16782.1029363388@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/186 X-Sequence-Number: 5301 "Nick Fankhauser" writes: > Does -m fast actually close connections on your server? It works as advertised for me: not only will it cut connections, but it will abort queries-in-progress. For instance, I did this: regression=# begin; BEGIN regression=# select * from tenk1 a, tenk1 b, tenk1 c; -- the above would return 100billion rows if given the chance, so -- after a second or two I issued "pg_ctl stop -m fast" in another -- window, and promptly got: FATAL: This connection has been terminated by the administrator. server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Failed. !# Successful shutdown was reported by pg_ctl a couple seconds later, as expected. Not sure what's going wrong for you --- are you certain you did the test correctly? Any possibility you ran the wrong script, shut down the wrong server, etc? regards, tom lane