Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id ED304475A93 for ; Thu, 15 Aug 2002 09:47:46 -0400 (EDT) Received: from snipe.mail.pas.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by postgresql.org (Postfix) with ESMTP id 806F247549E for ; Thu, 15 Aug 2002 09:47:42 -0400 (EDT) Received: from 1cust150.tnt3.richmond.in.da.uu.net ([67.241.79.150] helo=nick) by snipe.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 17fKyO-0007WT-00; Thu, 15 Aug 2002 06:47:36 -0700 Reply-To: From: "Nick Fankhauser" To: "Tom Lane" , "pgsql-admin" Subject: Re: Leftover processes on shutdown - Debian+JDBC Date: Thu, 15 Aug 2002 08:43:59 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-reply-to: <16782.1029363388@sss.pgh.pa.us> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/188 X-Sequence-Number: 5303 Tom- I just spent some time trying to reproduce the behavior I saw yesterday, and I can't do it... In fact -m fast is doing exactly what it is supposed to. Apologies for the false alarm! So going back to my original question about the leftover processes- Doing a pg_ctl stop -m fast solves the problem nicely, and Oliver said he is going to change the script in the Debian package accordingly. -Nick > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Tom Lane > Sent: Wednesday, August 14, 2002 5:16 PM > To: nickf@ontko.com > Cc: Chad R. Larson; pgsql-admin > Subject: Re: [ADMIN] Leftover processes on shutdown - Debian+JDBC > > > "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 > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly >