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:40 +0000
Message-ID: <E1nAzum-00033o-Hx@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_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/1c6d055ba77a5b600496a81bbaafaeb064d1cf2d
Modified Files
--------------
src/backend/access/heap/rewriteheap.c | 3 +++
1 file changed, 3 insertions(+)
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: <E1nAzum-00033o-Hx@gemulon.postgresql.org>
References: <E1nAzum-00033o-Hx@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