pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: adey <adey11@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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: Tue, 11 Jul 2006 10:58:40 +1200
Message-ID: <1c66bda80607101558x51dd4eb5l5fb569ea31f00da6@mail.gmail.com> (raw)
In-Reply-To: <20570.1147984074@sss.pgh.pa.us>
References: <20060518141816.Q1145@ganymede.hub.org>
	<20570.1147984074@sss.pgh.pa.us>

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?

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
>

view thread (5+ messages)  latest in thread

Message-ID: <1c66bda80607101558x51dd4eb5l5fb569ea31f00da6@mail.gmail.com>
Permalink:  ../1c66bda80607101558x51dd4eb5l5fb569ea31f00da6@mail.gmail.com/
Also on:    postgresql.org/message-id/1c66bda80607101558x51dd4eb5l5fb569ea31f00da6@mail.gmail.com

 · 

reply

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: 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: <1c66bda80607101558x51dd4eb5l5fb569ea31f00da6@mail.gmail.com>
  References: <20060518141816.Q1145@ganymede.hub.org> <20570.1147984074@sss.pgh.pa.us> <1c66bda80607101558x51dd4eb5l5fb569ea31f00da6@mail.gmail.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