pgsql: Report tuple address in data-corruption error message

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Report tuple address in data-corruption error message
Date: 2021-08-30 20:31:19
Message-ID: E1mKnw7-00038V-9q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Report tuple address in data-corruption error message

Most data-corruption reports mention the location of the problem, but
this one failed to. Add it.

Backpatch all the way back. In 12 and older, also assign the
ERRCODE_DATA_CORRUPTED error code as was done in commit fd6ec93bf890 for
13 and later.

Discussion: https://postgr.es/m/202108191637.oqyzrdtnheir@alvherre.pgsql

Branch
------
REL_12_STABLE

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

Modified Files
--------------
src/backend/access/heap/heapam_handler.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-08-31 01:20:59 pgsql: Refactor one use of IDENTIFY_SYSTEM in WAL streaming code of pg_
Previous Message Alvaro Herrera 2021-08-30 18:02:11 pgsql: psql: Fix name quoting on extended statistics