pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Hellmuth Vargas <hivs77@gmail.com>
Cc: Martín Fernández <fmartin91@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: PG Upgrade with hardlinks, when to start/stop master and replicas
Date: Tue, 19 Feb 2019 10:05:38 -0500
Message-ID: <20190219150538.GP6197@tamriel.snowman.net> (raw)
In-Reply-To: <CAN3Qy4qh3f_pugLzM3c91tAi5xv-XMiTjYTYPYSgVXHqjrjiFw@mail.gmail.com>
References: <5c6b0bc5828e9f3dde000002@polymail.io>
	<20190219111152.GJ6197@tamriel.snowman.net>
	<CAN3Qy4qh3f_pugLzM3c91tAi5xv-XMiTjYTYPYSgVXHqjrjiFw@mail.gmail.com>

Greetings,

* Hellmuth Vargas (hivs77@gmail.com) wrote:
> But could you do the following procedure?:

> pg_upgrade of the master
> rysnc with a hot standby

The above should be alright provided both the primary and the standby
are down and the instructions in the pg_upgrade docs are followed.

> arracar master
> hot standby start

So, start both the primary and the replica?  That part should be fine by
itself.

> stop hot standby and rsync the other hot standby with the migrated hot
> standby?

At some later point, shut down the replica completely, then do an rsync
from that replica to the other replica and build its hard-link tree that
way, and update anything that's changed while the 'migrated' replica was
online?  I don't see any obvious issue with that as the result should
mean that the two replicas are identical from PG's perspective from that
point moving forward.

Ultimately, it really depends on your specific environment though, of
course.  It also might not be a bad idea to do a regular backup of the
upgraded primary and then restore that to the second replica, just to
make sure you have that whole process working and to test out your
restore process.

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (17+ messages)  latest in thread

Message-ID: <20190219150538.GP6197@tamriel.snowman.net>
Permalink:  ../20190219150538.GP6197@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20190219150538.GP6197@tamriel.snowman.net

 · 

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: sfrost@snowman.net, hivs77@gmail.com, fmartin91@gmail.com
  Subject: Re: PG Upgrade with hardlinks, when to start/stop master and replicas
  In-Reply-To: <20190219150538.GP6197@tamriel.snowman.net>
  References: <5c6b0bc5828e9f3dde000002@polymail.io> <20190219111152.GJ6197@tamriel.snowman.net> <CAN3Qy4qh3f_pugLzM3c91tAi5xv-XMiTjYTYPYSgVXHqjrjiFw@mail.gmail.com> <20190219150538.GP6197@tamriel.snowman.net>

* 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