pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Flush logical mapping files with fd opened for read/write at che
Date: Wed, 09 Oct 2019 04:32:26 +0000
Message-ID: <E1iI3eE-0003Px-KF@gemulon.postgresql.org> (raw)

Flush logical mapping files with fd opened for read/write at checkpoint

The file descriptor was opened with read-only to fsync a regular file,
which would cause EBADFD errors on some platforms.

This is similar to the recent fix done by a586cc4b (which was broken by
me with 82a5649), except that I noticed this issue while monitoring the
backend code for similar mistakes.  Backpatch to 9.4, as this has been
introduced since logical decoding exists as of b89e151.

Author: Michael Paquier
Reviewed-by: Andres Freund
Discussion: https://postgr.es/m/20191006045548.GA14532@paquier.xyz
Backpatch-through: 9.4

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/59800f7cef558da424a98ee4b9c74a0dd2758ea5

Modified Files
--------------
src/backend/access/heap/rewriteheap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1iI3eE-0003Px-KF@gemulon.postgresql.org>
Permalink:  ../E1iI3eE-0003Px-KF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iI3eE-0003Px-KF@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Flush logical mapping files with fd opened for read/write at che
  In-Reply-To: <E1iI3eE-0003Px-KF@gemulon.postgresql.org>
  References: <E1iI3eE-0003Px-KF@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox