From: Glen Eustace <geustace@godzone.net.nz>
To: pgsql-general@postgresql.org
Subject: Restoring a database problem
Date: Thu, 1 Oct 2020 13:00:21 +1300
Message-ID: <e5b66a06-8b3c-8ff7-7e23-7962026a950c@godzone.net.nz> (raw)
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.
Currently I have been logging into a bunch of servers and stopping
various daemons, then on the database server killing processes until the
database is apparently idle then dropping the database and doing the
restore. Then restarting the daemons etc. I am sure I am not doing this
the right way so advice gratefully received.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Glen Eustace,
GodZone Internet Services, a division of AGRE Enterprises Ltd.,
P.O. Box 8020, Palmerston North, New Zealand 4446 Ph +64 6 357 8168, Mob
+64 27 542 4015
“Specialising in providing low-cost professional Internet Services since
1997"
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: geustace@godzone.net.nz
Subject: Re: Restoring a database problem
In-Reply-To: <e5b66a06-8b3c-8ff7-7e23-7962026a950c@godzone.net.nz>
References: <e5b66a06-8b3c-8ff7-7e23-7962026a950c@godzone.net.nz>
* 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