agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix errno check based on EINTR in pg_flush_data()
Date: Thu, 30 Apr 2026 09:45:10 +0000
Message-ID: <E1wINxF-003RgZ-1F@gemulon.postgresql.org> (raw)
Fix errno check based on EINTR in pg_flush_data()
Upon a failure of sync_file_range(), EINTR was checked based on the
returned result of the routine rather than its errno. sync_file_range()
returns -1 on failure, making the check a no-op, invalidating the retry
attempt in this case.
Oversight in 0d369ac65004.
Author: DaeMyung Kang <charsyam@gmail.com>
Discussion: https://postgr.es/m/20260429151811.1810874-1-charsyam@gmail.com
Backpatch-through: 16
Branch
------
REL_18_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/6cb307251c5c6261286c1566496920976640108e
Modified Files
--------------
src/backend/storage/file/fd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
view thread (4+ messages) latest in thread
Message-ID: <E1wINxF-003RgZ-1F@gemulon.postgresql.org>
Permalink: ../E1wINxF-003RgZ-1F@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1wINxF-003RgZ-1F@gemulon.postgresql.org
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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix errno check based on EINTR in pg_flush_data()
In-Reply-To: <E1wINxF-003RgZ-1F@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox