From: Joshua D. Drake <jd@commandprompt.com>
To: pgsql-admin@postgresql.org
Cc: adey <adey11@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Marc G. Fournier <scrappy@postgresql.org>
Subject: Re: lock a database from new connections, without modifying pg_hba.conf
Date: Mon, 10 Jul 2006 16:26:54 -0700
Message-ID: <200607101626.54936.jd@commandprompt.com> (raw)
In-Reply-To: <1c66bda80607101558x51dd4eb5l5fb569ea31f00da6@mail.gmail.com>
References: <20060518141816.Q1145@ganymede.hub.org>
<20570.1147984074@sss.pgh.pa.us>
<1c66bda80607101558x51dd4eb5l5fb569ea31f00da6@mail.gmail.com>
On Monday 10 July 2006 15:58, adey wrote:
> Can hba be manipulated in such a way to make Postgres "read only" to obtain
> a complete and full backup please, and if so, how?
PostgreSQL allows "complete and full backups" while in production. E.g; we
support hot backups :). You do not have to stop working just to run backups
(unlike another unnamed database).
Sincerely,
Joshua D. Drake
>
> On 5/19/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > "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
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 1: 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
--
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/
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: jd@commandprompt.com, adey11@gmail.com, tgl@sss.pgh.pa.us, scrappy@postgresql.org
Subject: Re: lock a database from new connections, without modifying pg_hba.conf
In-Reply-To: <200607101626.54936.jd@commandprompt.com>
References: <20060518141816.Q1145@ganymede.hub.org> <20570.1147984074@sss.pgh.pa.us> <1c66bda80607101558x51dd4eb5l5fb569ea31f00da6@mail.gmail.com> <200607101626.54936.jd@commandprompt.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