pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Curt Kolovson <curt@kolovson.org>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: how reliable is pg_rewind?
Date: Mon, 3 Aug 2020 10:58:08 +0900
Message-ID: <20200803015808.GJ3317@paquier.xyz> (raw)
In-Reply-To: <CANhYJV4xd7kApkMm18pTg9CN8CEUjrZeW4boNJ2aQ8xWicS74A@mail.gmail.com>
References: <CANhYJV4xd7kApkMm18pTg9CN8CEUjrZeW4boNJ2aQ8xWicS74A@mail.gmail.com>

On Sat, Aug 01, 2020 at 10:35:37AM -0700, Curt Kolovson wrote:
> When trying to resync an old primary to become a new standby, I have found
> that pg_rewind only works occasionally. How reliable/robust is pg_rewind,
> and what are its limitations? We have observed that approx half our FPIs in
> the WALs are due to XLOG/FPI_FOR_HINT. The only reason we've set
> wal_log_hints=on is so that we can  use pg_rewind. But if pg_rewind is
> unreliable, we would rather turn off wal_log_hints. Any info on the
> reliability of pg_rewind and its limitations would be appreciated.

FWIW, we use it in production to accelerate the redeployment of
standbys in HA configuration for 4 years now in at least one product,
and it is present in upstream for since 9.5, for 5 years now.  So the
tool is rather baked at this stage of the game.
--
Michael

Attachments:

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

view thread (5+ messages)  latest in thread

Message-ID: <20200803015808.GJ3317@paquier.xyz>
Permalink:  ../20200803015808.GJ3317@paquier.xyz/
Also on:    postgresql.org/message-id/20200803015808.GJ3317@paquier.xyz

 · 

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: michael@paquier.xyz, curt@kolovson.org
  Subject: Re: how reliable is pg_rewind?
  In-Reply-To: <20200803015808.GJ3317@paquier.xyz>
  References: <CANhYJV4xd7kApkMm18pTg9CN8CEUjrZeW4boNJ2aQ8xWicS74A@mail.gmail.com> <20200803015808.GJ3317@paquier.xyz>

* 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