From: Anastasia Lubennikova <a.lubennikova@postgrespro.ru>
To: Grigory Smolkin <g.smolkin@postgrespro.ru>
To: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: history file on replica and double switchover
Date: Fri, 4 Sep 2020 02:29:36 +0300
Message-ID: <b3a3ff0c-eabd-58ad-94be-846b067fed33@postgrespro.ru> (raw)
In-Reply-To: <54b059d4-2b48-13a4-6f43-95a087c92367@postgrespro.ru>
References: <54b059d4-2b48-13a4-6f43-95a087c92367@postgrespro.ru>
On 27.08.2020 16:02, Grigory Smolkin wrote:
> Hello!
>
> I`ve noticed, that when running switchover replica to master and back
> to replica, new history file is streamed to replica, but not archived,
> which is not great, because it breaks PITR if archiving is running on
> replica. The fix looks trivial.
> Bash script to reproduce the problem and patch are attached.
>
Thanks for the report. I agree that it looks like a bug.
For some reason, patch failed to apply on current master, even though I
don't see any difference in the code.
I'll attach this thread to the next commitfest, so it doesn't get lost.
--
Anastasia Lubennikova
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
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-hackers@postgresql.org
Cc: a.lubennikova@postgrespro.ru, g.smolkin@postgrespro.ru
Subject: Re: history file on replica and double switchover
In-Reply-To: <b3a3ff0c-eabd-58ad-94be-846b067fed33@postgrespro.ru>
References: <54b059d4-2b48-13a4-6f43-95a087c92367@postgrespro.ru> <b3a3ff0c-eabd-58ad-94be-846b067fed33@postgrespro.ru>
* 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