Re: Taking database offline - Mailing list pgsql-admin

From scott.marlowe
Subject Re: Taking database offline
Date
Msg-id Pine.LNX.4.33.0311121407020.31933-100000@css120.ihs.com
Whole thread Raw
In response to Taking database offline  (ow <oneway_111@yahoo.com>)
Responses Re: Taking database offline
List pgsql-admin
On Wed, 12 Nov 2003, ow wrote:

> Hi,
>
> Is there a way to take the database offline to keep users out?
> Is there a way to take the database offline but still allowing pg_restore to
> run against it?

Yes, as of 7.3 you can create entries in pg_hba.conf that control who can
connect to what database.  Just make a backup of the original pg_hba.conf,
and set up your copy to have only the postgres (or other) superuser be
allowed to connect.  Then, swap the two hba files and restart the server.




pgsql-admin by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Taking database offline
Next
From: "Glenn Wiorek"
Date:
Subject: Question On 7.4RC2