+ pgsql-hackers@
 
 
 
----------------
31.08.2026, 16:30, "Andrey Borodin" <x4mmm@yandex-team.ru>:

In v2, both platforms use the test process PID and the node port. The
PID distinguishes parallel tests, and the port distinguishes nodes in
one test. There is only one archiver per node, so retries can safely
reuse the same temporary path.

I also documented that archive commands with concurrent readers should
publish complete files atomically, and warned that the simple cp example
does not. I did not present the helper's mv -f as a production recipe,
because that would contradict the existing requirement not to overwrite
a different pre-existing segment.

 
Thank you for your work. Checked code and documentation.
Now this patch looks great to me.

As for frequency of failures, I believe that renaming will be more reliable.
As long as we expect it to be atomic on all systems.
 
Best regards, Stepan Filippov.