Re: WAL segment file descriptor leak on read errors can PANIC the server - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: WAL segment file descriptor leak on read errors can PANIC the server
Date
Msg-id asQj3VLmTyqnqeZn@paquier.xyz
Whole thread
In response to Re: WAL segment file descriptor leak on read errors can PANIC the server  (Alexandre Felipe <o.alexandre.felipe@gmail.com>)
List pgsql-hackers
On Mon, Oct 05, 2026 at 10:59:16AM +0100, Alexandre Felipe wrote:
> BasicOpenFile() called repeatedly will accumulate stale descriptors
> indefinitely.

I don't really see a reason to care about this kind of complexity in
the scope of xlogreader.h: XLogReaderState.WALOpenSegment.ws_file is
the only fd that we need to track.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: surya poondla
Date:
Subject: Re: Limiting WAL retained for archiving, like max_slot_wal_keep_size
Next
From: Masahiko Sawada
Date:
Subject: Re: Fix "unexpected logical decoding status change" error; from concurrent logical decoding activation