From: Bruno Wolff III <bruno@wolff.to>
To: ow <oneway_111@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Taking database offline
Date: Wed, 12 Nov 2003 15:09:45 -0600
Message-ID: <20031112210945.GA2077@wolff.to> (raw)
In-Reply-To: <20031112200723.9892.qmail@web21407.mail.yahoo.com>
References: <20031112200723.9892.qmail@web21407.mail.yahoo.com>
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.
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: bruno@wolff.to, oneway_111@yahoo.com
Subject: Re: Taking database offline
In-Reply-To: <20031112210945.GA2077@wolff.to>
References: <20031112200723.9892.qmail@web21407.mail.yahoo.com> <20031112210945.GA2077@wolff.to>
* 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