From: Tom Lane <tgl@sss.pgh.pa.us>
To: nickf@ontko.com
Cc: Chad R. Larson <clarson@eldocomp.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Leftover processes on shutdown - Debian+JDBC
Date: Wed, 14 Aug 2002 18:16:28 -0400
Message-ID: <16782.1029363388@sss.pgh.pa.us> (raw)
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGKECGFJAA.nickf@ontko.com>
References: <NEBBLAAHGLEEPCGOBHDGKECGFJAA.nickf@ontko.com>
"Nick Fankhauser" <nickf@ontko.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, nickf@ontko.com, clarson@eldocomp.com
Subject: Re: Leftover processes on shutdown - Debian+JDBC
In-Reply-To: <16782.1029363388@sss.pgh.pa.us>
References: <NEBBLAAHGLEEPCGOBHDGKECGFJAA.nickf@ontko.com> <16782.1029363388@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox