Re: Moving the master to a new server

From: Alan Hodgson <ahodgson(at)lists(dot)simkin(dot)ca>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Moving the master to a new server
Date: 2022-02-14 19:39:21
Message-ID: 73f0c0df6e624830920c3a73d214084e0ea86e19.camel@lists.simkin.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Glen Eustace 2022-02-14 19:58:52 Re: Moving the master to a new server
Previous Message Glen Eustace 2022-02-14 19:29:42 Moving the master to a new server