]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Use ereport not elog for some corrupt-HOT-chain reports.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 1 Mar 2018 21:23:30 +0000 (16:23 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 1 Mar 2018 21:23:48 +0000 (16:23 -0500)
commit8e25be4859783f0971c5a1b9f9d12bcea18c59ec
tree2d49f28070e19c4f0281b7c0f7ddb01468a8a7b7
parent0ddaaa4cf4ff6e200767daf831e4cd955bafaa61
Use ereport not elog for some corrupt-HOT-chain reports.

These errors have been seen in the field in corrupted-data situations.
It seems worthwhile to report them with ERRCODE_DATA_CORRUPTED, rather
than the generic ERRCODE_INTERNAL_ERROR, for the benefit of log monitoring
and tools like amcheck.  However, use errmsg_internal so that the text
strings still aren't translated; it seems unlikely to be worth
translators' time to do so.

Back-patch to 9.3, like the predecessor commit d70cf811f that introduced
these elog calls originally (replacing Asserts).

Peter Geoghegan

Discussion: https://postgr.es/m/CAH2-Wzmn4-Pg-UGFwyuyK-wiTih9j32pwg_7T9iwqXpAUZr=Mg@mail.gmail.com
src/backend/catalog/index.c