Hi Alvaro,

On Fri, Aug 21, 2026 at 6:35 PM Alvaro Herrera wrote:
> If you're using a version that contains these fixes, then we may have
> some slightly different bug ...

Yes, this is a different bug.  I added a deterministic injection-point test
on current master, which already contains 006dd4b2e.  It stops
BASE_BACKUP after selecting the startpoint but before sending it to the
client, recycles that WAL, and then observes pg_basebackup fail when its WAL
streamer starts.  As a reproducer, the test succeeds only when pg_basebackup
fails with the expected missing-WAL error.

006dd4b2e protects an already created slot while it reserves WAL.  In this
case no slot exists yet, so it cannot protect the earlier backup startpoint.

PFA the test patch.


Best regards, Andrey Borodin.

Attachment: v1-0001-Demonstrate-WAL-recycling-race-in-pg_basebackup-cre.patch
Description: Binary data

Reply via email to