Re: Moving the master to a new server - Mailing list pgsql-general

From Alan Hodgson
Subject Re: Moving the master to a new server
Date
Msg-id 73f0c0df6e624830920c3a73d214084e0ea86e19.camel@lists.simkin.ca
Whole thread Raw
In response to Moving the master to a new server  (Glen Eustace <geustace@godzone.net.nz>)
Responses Re: Moving the master to a new server  (Glen Eustace <geustace@godzone.net.nz>)
List pgsql-general
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.

pgsql-general by date:

Previous
From: Glen Eustace
Date:
Subject: Moving the master to a new server
Next
From: Glen Eustace
Date:
Subject: Re: Moving the master to a new server