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:11
Message-ID: E1x3thO-00000003yxJ-1Amj@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_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a8004e161ba5c5f4eb43058b0c8c298dbc7119f4

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:12 pgsql: Revert "Mark modified the FSM buffer as dirty during recovery"
Previous Message Alexander Korotkov 2026-09-08 11:09:09 pgsql: Revert "Mark modified the FSM buffer as dirty during recovery"