Re: lock a database from new connections, without modifying pg_hba.conf - Mailing list pgsql-admin

From adey
Subject Re: lock a database from new connections, without modifying pg_hba.conf
Date
Msg-id 1c66bda80607101558x51dd4eb5l5fb569ea31f00da6@mail.gmail.com
Whole thread Raw
In response to Re: lock a database from new connections, without modifying pg_hba.conf  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: lock a database from new connections, without modifying pg_hba.conf  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: "Aaron Bono"
Date:
Subject: Re: How to get rid of unicode
Next
From: KyLiE
Date:
Subject: %Alter Help