diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-03-01 16:23:30 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-03-01 16:23:46 -0500 |
commit | 2b2c5aae90fa59260ed54f9ea91ee27d135ef5a1 (patch) | |
tree | 79ffddef10e7af7b762d5c3935ad1bbc5ff11611 /src/backend/access/gist/gistvacuum.c | |
parent | aad956adaf492245f64493a9d3fad949252a1d2b (diff) | |
download | postgresql-2b2c5aae90fa59260ed54f9ea91ee27d135ef5a1.tar.gz postgresql-2b2c5aae90fa59260ed54f9ea91ee27d135ef5a1.zip |
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
Diffstat (limited to 'src/backend/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions