pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: fsync pg_logical/mappings in CheckPointLogicalRewriteHeap().
Date: Fri, 21 Jan 2022 19:49:34 +0000
Message-ID: <E1nAzug-00032w-RF@gemulon.postgresql.org> (raw)

fsync pg_logical/mappings in CheckPointLogicalRewriteHeap().

While individual logical rewrite files were synced to disk, the directory was
not. On some filesystems that could lead to loosing directory entries after a
crash.

Reported-By: Tom Lane <tgl@sss.pgh.pa.us>
Author: Nathan Bossart <bossartn@amazon.com>
Discussion: https://postgr.es/m/867F2E29-2782-4869-970E-B984C6D35A8F@amazon.com
Backpatch: 10-

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2b7dbe4bd5872ae5c6780e1a4121c2a5a8401e7c

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



view thread (6+ messages)  latest in thread

Message-ID: <E1nAzug-00032w-RF@gemulon.postgresql.org>
Permalink:  ../E1nAzug-00032w-RF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nAzug-00032w-RF@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: andres@anarazel.de
  Subject: Re: pgsql: fsync pg_logical/mappings in CheckPointLogicalRewriteHeap().
  In-Reply-To: <E1nAzug-00032w-RF@gemulon.postgresql.org>
  References: <E1nAzug-00032w-RF@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