pgsql: Don't log page zeroing when checksum failures are ignored

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Don't log page zeroing when checksum failures are ignored
Date: 2026-09-14 13:34:14
Message-ID: E1x66p4-00000000I6Z-33iS@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't log page zeroing when checksum failures are ignored

When checksum failures are ignored, the page won't be zeroed on error
even if zero_damaged_pages is set. Found via review by GPT-6.

Author: Daniel Gustafsson <daniel(at)yesql(dot)se>
Discussion: https://postgr.es/m/E15AC050-C4B5-488D-BB2D-3C7AC9F89EA8@yesql.se
Backpatch-through: 19

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6547a2f6cccf8cfbfdd91a0b278bb65f0b00bdd2

Modified Files
--------------
src/backend/storage/page/bufpage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2026-09-14 14:16:41 pgsql: Describe special values in more GUC descriptions.
Previous Message Alexander Korotkov 2026-09-14 11:50:05 pgsql: Fix timeout overflow in WAIT FOR LSN