Report tuple address in data-corruption error message

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 02797ffa9a31db63a6cd499c67700c0de4863e4c
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2021-08-30T20:29:12Z
Releases: 10.19
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

Files

PathChange+/−
src/backend/executor/execMain.c modified +7 −1

Discussion