pgsql: Revert "Mark modified the FSM buffer as dirty during recovery"

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Revert "Mark modified the FSM buffer as dirty during recovery"
Date: 2026-09-08 11:09:08
Message-ID: E1x3thL-00000003ywH-2xQN@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Revert "Mark modified the FSM buffer as dirty during recovery"

This reverts commit c06d1a4ba6b26eef27b04074683cccade6c277ee.

The commit assumed that if the FSM code tolerates torn pages, everything else
does so. Readers that do not tolerate that include RelationCopyStorage(),
used by ALTER TABLE ... SET TABLESPACE for every fork, the read stream in
RelationCopyStorageUsingBuffer() used by CREATE DATABASE ... STRATEGY =
wal_log, and, most awkwardly, the checksum verification in base backups and
pg_checksums.

Reported-by: Noah Misch <noah(at)leadboat(dot)com>
Discussion: https://postgr.es/m/20260901211837.f6.noahmisch%40microsoft.com
Backpatch-through: 14
Reviewed-by: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/35e4b760a5e91808f315184d020e58ac2695619c

Modified Files
--------------
src/backend/storage/freespace/freespace.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2026-09-08 11:09:09 pgsql: Revert "Mark modified the FSM buffer as dirty during recovery"
Previous Message Michael Paquier 2026-09-08 08:34:01 pgsql: doc: Remove unnecessary CVE items from release notes