pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Paul Förster <paul.foerster@gmail.com>
Cc: James Sewell <james.sewell@jirotech.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Safe switchover
Date: Fri, 10 Jul 2020 11:45:56 -0400
Message-ID: <20200710154556.GL12375@tamriel.snowman.net> (raw)
In-Reply-To: <01BE6868-6920-4E5D-9A4D-838E3036DCD2@gmail.com>
References: <CAANVwEv6Ttv0p74P0U8DemFdYejC=VRX2xvFA-nPHTZk=v-12Q@mail.gmail.com>
	<CAANVwEu1AoiMe9ao0adaNjfW4TTT5ay7VoRUL6+9He18jg-ugQ@mail.gmail.com>
	<7E43945E-4571-4D30-9E8F-B940B9277DEF@gmail.com>
	<20200710152959.GK12375@tamriel.snowman.net>
	<01BE6868-6920-4E5D-9A4D-838E3036DCD2@gmail.com>

Greetings,

* Paul Förster (paul.foerster@gmail.com) wrote:
> > On 10. Jul, 2020, at 17:29, Stephen Frost <sfrost@snowman.net> wrote:
> > Patroni also has the option to use pgbackrest instead of pg_rewind.
> 
> right. Sorry, I forgot about that. We use pg_rewind which works great.

Sure, if you know exactly why the former primary failed and have
confidence that nothing actually bad happened then pg_rewind can work
(though it's still not what I'd generally recommend).

If you don't actually know what happened to the former primary to cause
it to fail then I definitely wouldn't use pg_rewind on it since it
doesn't have any checks to make sure that the data is actually
generally consistent.  These days you could get a bit of a better
feeling by running pg_checksums against the data dir, but that's not
going to be as good as doing a pgbackrest delta restore when it comes to
making sure that everything is valid.

Thanks,

Stephen

Attachments:

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

view thread (13+ messages)  latest in thread

Message-ID: <20200710154556.GL12375@tamriel.snowman.net>
Permalink:  ../20200710154556.GL12375@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20200710154556.GL12375@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, paul.foerster@gmail.com, james.sewell@jirotech.com
  Subject: Re: Safe switchover
  In-Reply-To: <20200710154556.GL12375@tamriel.snowman.net>
  References: <CAANVwEv6Ttv0p74P0U8DemFdYejC=VRX2xvFA-nPHTZk=v-12Q@mail.gmail.com> <CAANVwEu1AoiMe9ao0adaNjfW4TTT5ay7VoRUL6+9He18jg-ugQ@mail.gmail.com> <7E43945E-4571-4D30-9E8F-B940B9277DEF@gmail.com> <20200710152959.GK12375@tamriel.snowman.net> <01BE6868-6920-4E5D-9A4D-838E3036DCD2@gmail.com> <20200710154556.GL12375@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