pgsql: Add error codes to some corruption log messages

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add error codes to some corruption log messages
Date: 2019-08-01 09:19:20
Message-ID: E1ht7F2-0005HV-CF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add error codes to some corruption log messages

In some cases we have elog(ERROR) while corruption is certain and we
can give a clear error code ERRCODE_DATA_CORRUPTED or
ERRCODE_INDEX_CORRUPTED.

Author: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
Discussion: https://www.postgresql.org/message-id/flat/25F6C686-6442-4A6B-BAF8-A6F7B84B16DE(at)yandex-team(dot)ru

Branch
------
master

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

Modified Files
--------------
src/backend/access/heap/heapam_handler.c | 4 ++-
src/backend/access/heap/tuptoaster.c | 58 +++++++++++++++++++-------------
src/backend/access/nbtree/nbtinsert.c | 16 +++++----
src/backend/access/nbtree/nbtpage.c | 30 +++++++++++------
src/backend/access/nbtree/nbtsearch.c | 6 ++--
5 files changed, 70 insertions(+), 44 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-08-01 14:08:01 Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.)
Previous Message Shay Rojansky 2019-08-01 09:09:54 Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.)