WAL segment file descriptor leak on read errors can PANIC the server

Edit
ID 7328
Title WAL segment file descriptor leak on read errors can PANIC the server
CI (CFBot) Summary
Stats (from CFBot) Patch version: v1, Patch count: 1, First patch: +1−1, All patches: +1−1
Tags Bugfix
Created 2026-09-21 20:24:44
Last modified 2026-10-08 15:33:55 (1 week ago)
Latest email 2026-10-09 05:00:34 (1 week ago)
Status
PG20-3 (2026-11-01 – 2026-11-30): Committed
Target version
Authors Bharath Rupireddy (bharathrupireddy)
Reviewers Become reviewer
Committer Michael Paquier (michael-kun)
Links
Emails
WAL segment file descriptor leak on read errors can PANIC the server
First at 2026-09-21 07:12:17 by Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com>
Latest at 2026-10-09 05:00:34 by Michael Paquier <michael at paquier.xyz>
Latest attachment (v1-0001-xlogreader-Treat-any-negative-segment-descriptor-.patch) at 2026-10-08 06:55:23 from Bertrand Drouvot <bertranddrouvot.pg at gmail.com>
    Attachment (v1-0001-xlogreader-Treat-any-negative-segment-descriptor-.patch) at 2026-10-08 06:55:23 from Bertrand Drouvot <bertranddrouvot.pg at gmail.com> (Patch: No)
    Attachment (v4-0001-Fix-WAL-segment-file-descriptor-leak-on-WAL-read-.patch) at 2026-10-07 18:34:40 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: No)
    Attachment (v3-0001-Fix-WAL-segment-file-descriptor-leak-on-WAL-read-.patch) at 2026-10-05 05:52:41 from Michael Paquier <michael at paquier.xyz> (Patch: No)
    Attachment (v2-0001-Fix-WAL-segment-file-descriptor-leak-on-WAL-read-.patch) at 2026-10-01 04:42:00 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: No)
    Attachment (v1-0001-Fix-WAL-segment-file-descriptor-leak-on-WAL-read-.patch) at 2026-09-21 07:12:17 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: No)
History
When Who What
2026-10-08 15:33:55 Bharath Rupireddy (bharathrupireddy) Closed in commitfest PG20-3 with status: Committed
2026-10-08 15:33:55 Bharath Rupireddy (bharathrupireddy) Changed committer to michael-kun
2026-09-21 20:24:45 Bharath Rupireddy (bharathrupireddy) Attached mail thread CALj2ACVwDuOXXDjj2cVdnTKoxsgTSLDin4XoL63AnM6aUgMQaA@mail.gmail.com
2026-09-21 20:24:45 Bharath Rupireddy (bharathrupireddy) Created patch record
Edit