Re: Taking database offline - Mailing list pgsql-admin

From Bruno Wolff III
Subject Re: Taking database offline
Date
Msg-id 20031112210945.GA2077@wolff.to
Whole thread Raw
In response to Taking database offline  (ow <oneway_111@yahoo.com>)
List pgsql-admin
On Wed, Nov 12, 2003 at 12:07:23 -0800,
  ow <oneway_111@yahoo.com> 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?

You could shut the database down, change pg_hba.conf to only let in
the postgres user, bring the system back up. Once you finish your restore
you can repeat the procedure, this time change pg_hba.conf to let everyone
back in.

pgsql-admin by date:

Previous
From: ow
Date:
Subject: Taking database offline
Next
From: "scott.marlowe"
Date:
Subject: Re: Taking database offline