From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Restoring a database problem
Date: Sat, 3 Oct 2020 13:30:50 +0200
Message-ID: <20201003113050.GC18543@hjp.at> (raw)
In-Reply-To: <82097994-6772-dfd7-84e0-8f150af25e26@gmail.com>
References: <e5b66a06-8b3c-8ff7-7e23-7962026a950c@godzone.net.nz>
<20201001001100.GC26860@momjian.us>
<82097994-6772-dfd7-84e0-8f150af25e26@gmail.com>
On 2020-09-30 20:11:12 -0500, Ron wrote:
> On 9/30/20 7:11 PM, Bruce Momjian wrote:
> > On Thu, Oct 1, 2020 at 01:00:21PM +1300, Glen Eustace wrote:
> > > I have had to do this so rarely and it has almost always been in a bit of a
> > > panic so may well be missing something really obvious.
> > >
> > > What I want to know is how to quiese a database to that I can restore it.
> > >
> > > I need to close all existing connections and the prevent people/processes from
> > > connecting again until the restore has completed.
[...]
> > I would modify pg_hba.conf to block access temporarily.
>
> As would I; it's the first thing I thought of...
Interesting. The first thing I thought of was "iptables"[1]. Probably shows
that I'm a Linux guy first and a database guy second.
hp
[1] Yes, I know that this doesn't affect connections through Unix
sockets.
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
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-general@postgresql.org
Cc: hjp-pgsql@hjp.at
Subject: Re: Restoring a database problem
In-Reply-To: <20201003113050.GC18543@hjp.at>
References: <e5b66a06-8b3c-8ff7-7e23-7962026a950c@godzone.net.nz> <20201001001100.GC26860@momjian.us> <82097994-6772-dfd7-84e0-8f150af25e26@gmail.com> <20201003113050.GC18543@hjp.at>
* 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