Re: history file on replica and double switchover - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: history file on replica and double switchover
Date
Msg-id ef405976-3e6d-8f67-4845-8d78a5947f12@oss.nttdata.com
Whole thread Raw
In response to Re: history file on replica and double switchover  (Grigory Smolkin <g.smolkin@postgrespro.ru>)
Responses Re: history file on replica and double switchover
List pgsql-hackers

On 2020/09/26 2:58, Grigory Smolkin wrote:
> Fujii Masao, David Zhang, Anastasia Lubennikova, many thanks to you for efforts with this patch!
> Can I mark it as ready for committer?

Ok, but I attached the updated version of the patch. It's helpful if you review that.

In the latest patch, I changed walreceiver so that it creates .done file for the streamed timeline history file when
archive_modeis NOT "always".
 

Walreceiver does the same thing for the streamed WAL files to prevent them from being archived later. Without this, the
streamedWAL files can exist in pg_wal without any archive status files, and then they will be archived later
accidentallybecause of lack of archive status.
 

OTOH, timeline history files will not be archived later even without archive status files. So there is no strong reason
tomake walreceiver create .doen file for the timeline history files. But at least for me it's strange to keep the file
inpg_wal without archive status. So for now I'm just inclined to create .done files.... Thought?
 

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

Attachment

pgsql-hackers by date:

Previous
From: Andrey Lepikhov
Date:
Subject: Re: Asynchronous Append on postgres_fdw nodes.
Next
From: Bruce Momjian
Date:
Subject: Re: scram-sha-256 broken with FIPS and OpenSSL 1.0.2