pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Hodgson <ahodgson@lists.simkin.ca>
To: pgsql-general@lists.postgresql.org
Subject: Re: Moving the master to a new server
Date: Mon, 14 Feb 2022 11:39:21 -0800
Message-ID: <73f0c0df6e624830920c3a73d214084e0ea86e19.camel@lists.simkin.ca> (raw)
In-Reply-To: <8891e8ab-2351-8b97-5496-f3bf4b19922b@godzone.net.nz>
References: <8891e8ab-2351-8b97-5496-f3bf4b19922b@godzone.net.nz>

On Tue, 2022-02-15 at 08:29 +1300, Glen Eustace wrote:
> I need to move my master postgresql deployment to a new server.
> 
> I am comfortable with stopping all connections then doing a
> pg_dumpall > 
> psql to move the databases, they are not huge so this completes in
> an 
> acceptable time and I am not expecting any data loss but I am
> unsure of 
> what impact this will have on the streaming replication.  I will be
> rebooting the new server with the old servers network configuration
> so I 
> am hoping that when I let connections back in, replication will
> just 
> restart but I cant find any documentation that says so.
> 

pg_dump -> restore will break your streaming replication. You'll need
to set it up again.

If the PG version isn't changing and you're still on the same version
of Linux, rsync would be easier.

view thread (6+ messages)  latest in thread

Message-ID: <73f0c0df6e624830920c3a73d214084e0ea86e19.camel@lists.simkin.ca>
Permalink:  ../73f0c0df6e624830920c3a73d214084e0ea86e19.camel@lists.simkin.ca/
Also on:    postgresql.org/message-id/73f0c0df6e624830920c3a73d214084e0ea86e19.camel@lists.simkin.ca

 · 

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: ahodgson@lists.simkin.ca
  Subject: Re: Moving the master to a new server
  In-Reply-To: <73f0c0df6e624830920c3a73d214084e0ea86e19.camel@lists.simkin.ca>
  References: <8891e8ab-2351-8b97-5496-f3bf4b19922b@godzone.net.nz> <73f0c0df6e624830920c3a73d214084e0ea86e19.camel@lists.simkin.ca>

* 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