Re: Taking database offline

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: ow <oneway_111(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Taking database offline
Date: 2003-11-12 21:09:45
Message-ID: 20031112210945.GA2077@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Nov 12, 2003 at 12:07:23 -0800,
ow <oneway_111(at)yahoo(dot)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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Christopher Browne 2003-11-12 21:22:14 Re: Upgrading to Solaris 9
Previous Message scott.marlowe 2003-11-12 21:08:34 Re: Taking database offline