From: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Cc: Chad N. Tindel <chad@tindel.net>
Subject: Re: Dropping a DB while it is in use?
Date: Mon, 05 Jan 2004 02:32:31 +0100
Message-ID: <3FF8BEAF.4050302@bigfoot.com> (raw)
In-Reply-To: <20031229005244.GA59513@calma.pair.com>
References: <20031229005244.GA59513@calma.pair.com>
Chad N. Tindel wrote:
> Is there a way to kill all the connections to a DB so that it can safely
> be dropped? Given that connections to a DB can come from any number of clients,
> the only way I've found to do this is to shutdown postgres, which is clearly
> an unacceptable solution because it stops access to the other 50 or so databases
> that are being used on the system.
You can do a kill -INT to backend that are managing the connection.
Regards
Gaeatano Mendola
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: mendola@bigfoot.com, chad@tindel.net
Subject: Re: Dropping a DB while it is in use?
In-Reply-To: <3FF8BEAF.4050302@bigfoot.com>
References: <20031229005244.GA59513@calma.pair.com> <3FF8BEAF.4050302@bigfoot.com>
* 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