pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Филиппов Степан <stepan.filippov@yandex.ru>
To: x4mmm@yandex-team.ru <x4mmm@yandex-team.ru>
To: pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
Subject: 028_pitr_timelines.pl might fail when cp interrupted and backup includes required segment
Date: Thu, 03 Sep 2026 09:54:42 +0500
Message-ID: <1062171788411186@mail.yandex.ru> (raw)
In-Reply-To: <20C5BD13-BA81-4DDA-9BDF-753916E3B43A@yandex-team.ru>
References: <8fd856ff-b37c-4731-a10b-202ef53a679d@gmail.com>
	<E24BAD98-4A2D-4E46-ADDE-6F17E601FD7D@yandex-team.ru>
	<178817170586.1143.9597198436299527603.pgcf@coridan.postgresql.org>
	<20C5BD13-BA81-4DDA-9BDF-753916E3B43A@yandex-team.ru>

<div>+ pgsql-hackers@</div><div> </div><div> </div><div> </div><div>----------------</div><div>31.08.2026, 16:30, "Andrey Borodin" &lt;x4mmm@yandex-team.ru&gt;:</div><blockquote><p>In v2, both platforms use the test process PID and the node port. The<br />PID distinguishes parallel tests, and the port distinguishes nodes in<br />one test. There is only one archiver per node, so retries can safely<br />reuse the same temporary path.<br /><br />I also documented that archive commands with concurrent readers should<br />publish complete files atomically, and warned that the simple cp example<br />does not. I did not present the helper's mv -f as a production recipe,<br />because that would contradict the existing requirement not to overwrite<br />a different pre-existing segment.</p></blockquote><div> </div><div><div style="background-color:rgb( 255 , 255 , 255 );color:rgb( 26 , 26 , 26 );font-family:'ys text' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Thank you for your work. Checked code and documentation.<br />Now this patch looks great to me.<br /><br />As for frequency of failures, I believe that renaming will be more reliable.<br />As long as we expect it to be atomic on all systems.<br /> </div><div style="background-color:rgb( 255 , 255 , 255 );color:rgb( 26 , 26 , 26 );font-family:'ys text' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>Best regards, Stepan Filippov.</div></div></div>

view thread (6+ messages)

Message-ID: <1062171788411186@mail.yandex.ru>
Permalink:  ../1062171788411186@mail.yandex.ru/
Also on:    postgresql.org/message-id/1062171788411186@mail.yandex.ru

 · 

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-hackers@postgresql.org
  Cc: stepan.filippov@yandex.ru, x4mmm@yandex-team.ru
  Subject: Re: 028_pitr_timelines.pl might fail when cp interrupted and backup includes required segment
  In-Reply-To: <1062171788411186@mail.yandex.ru>
  References: <8fd856ff-b37c-4731-a10b-202ef53a679d@gmail.com> <E24BAD98-4A2D-4E46-ADDE-6F17E601FD7D@yandex-team.ru> <178817170586.1143.9597198436299527603.pgcf@coridan.postgresql.org> <20C5BD13-BA81-4DDA-9BDF-753916E3B43A@yandex-team.ru> <1062171788411186@mail.yandex.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