pgsql: Use ereport not elog for some corrupt-HOT-chain reports.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Use ereport not elog for some corrupt-HOT-chain reports.
Дата
Msg-id E1erVgS-0005aq-Bs@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
REL9_5_STABLE

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

Modified Files
--------------
src/backend/catalog/index.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Relax overly strict sanity check for upgraded ancient databases
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Remove volatile qualifiers from shm_mq.c.