pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: Stephen Frost <sfrost@snowman.net>
Cc: James Sewell <james.sewell@jirotech.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Safe switchover
Date: Mon, 13 Jul 2020 18:05:59 +0200
Message-ID: <682CD01B-41A6-42F0-9FCB-41F35D431F3E@gmail.com> (raw)
In-Reply-To: <20200713160052.GV12375@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>
	<CB2A7C50-8629-4C14-94DA-DA3C51C669C3@gmail.com>
	<20200713154722.GU12375@tamriel.snowman.net>
	<E3416778-D8E9-4573-952B-BC7D563017F2@gmail.com>
	<20200713160052.GV12375@tamriel.snowman.net>

Hi Stephen,

> On 13. Jul, 2020, at 18:00, Stephen Frost <sfrost@snowman.net> wrote:
> 
> A pgbackrest delta restore will scan the entire data directory and
> verify every file matches the last backup, or it'll replace the file
> with what was in the backup that's being used.  If there's an error
> during any of that, the restore will fail.

ok, I didn't know that. Thanks very much. I'll look into it.

> That re-validation of the entire data directory is a pretty huge
> difference compared to how pg_rewind works.

I agree.

> Ah, yes, if you rebuild the replica from a backup (or from the primary),
> then sure, that's pretty similar to the pgbackrest delta restore, except
> that when using delta restore we're only rewriting files that have a
> different SHA checksum after being scanned, and we're pulling from the
> backup repo anything that's needed and not putting load on the primary.

so, from what I understand, pgbackrest bottom line merely reduces copy overhead in such a particular case. *Kind of* like shutdown primary, rsync, and then startup.

> There's been a few discussions on -hackers about this, that'd probably
> be the place to discuss it further..

I'm not hacker, I'm just a DBA. :-)

Cheers,
Paul




view thread (13+ messages)  latest in thread

Message-ID: <682CD01B-41A6-42F0-9FCB-41F35D431F3E@gmail.com>
Permalink:  ../682CD01B-41A6-42F0-9FCB-41F35D431F3E@gmail.com/
Also on:    postgresql.org/message-id/682CD01B-41A6-42F0-9FCB-41F35D431F3E@gmail.com

 · 

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: paul.foerster@gmail.com, sfrost@snowman.net, james.sewell@jirotech.com
  Subject: Re: Safe switchover
  In-Reply-To: <682CD01B-41A6-42F0-9FCB-41F35D431F3E@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> <20200710154556.GL12375@tamriel.snowman.net> <CB2A7C50-8629-4C14-94DA-DA3C51C669C3@gmail.com> <20200713154722.GU12375@tamriel.snowman.net> <E3416778-D8E9-4573-952B-BC7D563017F2@gmail.com> <20200713160052.GV12375@tamriel.snowman.net> <682CD01B-41A6-42F0-9FCB-41F35D431F3E@gmail.com>

* 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