pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add error codes when vacuum discovers VM corruption
Date: Mon, 08 Sep 2025 21:15:56 +0000
Message-ID: <E1uvjDQ-001Afa-16@gemulon.postgresql.org> (raw)

Add error codes when vacuum discovers VM corruption

Commit fd6ec93bf890314a and other previous work established the
principle that when an error is potentially reachable in case of on-disk
corruption but is not expected to be reached otherwise,
ERRCODE_DATA_CORRUPTED should be used. This allows log monitoring
software to search for evidence of corruption by filtering on the error
code.

Enhance the existing log messages emitted when the heap page is found to
be inconsistent with the VM by adding this error code.

Suggested-by: Andrey Borodin <x4mmm@yandex-team.ru>
Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/87DD95AA-274F-4F4F-BAD9-7738E5B1F905%40yandex-team.ru

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8ec97e78a7713a1ebf4976b55c19f6c9bc2716d9

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)



Message-ID: <E1uvjDQ-001Afa-16@gemulon.postgresql.org>
Permalink:  ../E1uvjDQ-001Afa-16@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uvjDQ-001Afa-16@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: melanieplageman@gmail.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add error codes when vacuum discovers VM corruption
  In-Reply-To: <E1uvjDQ-001Afa-16@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