From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc G. Fournier <scrappy@postgresql.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: lock a database from new connections, without modifying pg_hba.conf
Date: Thu, 18 May 2006 16:27:54 -0400
Message-ID: <20570.1147984074@sss.pgh.pa.us> (raw)
In-Reply-To: <20060518141816.Q1145@ganymede.hub.org>
References: <20060518141816.Q1145@ganymede.hub.org>
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> Is that possible? I've checked the docs for 8.1, and am not finding
> anything, nor anything in contrib ...
> the best I've been able to think of so far is to modify pg_hba.conf to not
> allow new connections for the duration of the operations I need to perform
> (drop and create a database) ...
Not sure I understand what you need. DROP DATABASE already locks out
new connections.
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, scrappy@postgresql.org
Subject: Re: lock a database from new connections, without modifying pg_hba.conf
In-Reply-To: <20570.1147984074@sss.pgh.pa.us>
References: <20060518141816.Q1145@ganymede.hub.org> <20570.1147984074@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