pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: Glen Eustace <geustace@godzone.net.nz>
Cc: pgsql-general@postgresql.org
Subject: Re: Restoring a database problem
Date: Wed, 30 Sep 2020 18:41:13 -0600
Message-ID: <DCB7F4E2-22CC-4BDD-8B40-D53895F999B0@gmail.com> (raw)
In-Reply-To: <20201001001100.GC26860@momjian.us>
References: <20201001001100.GC26860@momjian.us>



> On Sep 30, 2020, at 6:11 PM, Bruce Momjian <bruce@momjian.us> 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.
>> 
>> 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.
> 
> I would modify pg_hba.conf to block access temporarily.
> 
> -- 
>  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
>  EnterpriseDB                             https://enterprisedb.com
> 
>  The usefulness of a cup is in its emptiness, Bruce Lee
> 
https://www.google.com/url?sa=t&source=web&cd=&ved=2ahUKEwiB56D1k5LsAhXBAp0JHQkYA3MQFjAA...


> 

view thread (6+ messages)  latest in thread

Message-ID: <DCB7F4E2-22CC-4BDD-8B40-D53895F999B0@gmail.com>
Permalink:  ../DCB7F4E2-22CC-4BDD-8B40-D53895F999B0@gmail.com/
Also on:    postgresql.org/message-id/DCB7F4E2-22CC-4BDD-8B40-D53895F999B0@gmail.com

 · 

reply

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: robjsargent@gmail.com, bruce@momjian.us, geustace@godzone.net.nz
  Subject: Re: Restoring a database problem
  In-Reply-To: <DCB7F4E2-22CC-4BDD-8B40-D53895F999B0@gmail.com>
  References: <20201001001100.GC26860@momjian.us> <DCB7F4E2-22CC-4BDD-8B40-D53895F999B0@gmail.com>

* 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