Re: reporting TID/table with corruption error - Mailing list pgsql-hackers

From Dagfinn Ilmari Mannsåker
Subject Re: reporting TID/table with corruption error
Date
Msg-id 87y28xuyk0.fsf@wibble.ilmari.org
Whole thread Raw
In response to reporting TID/table with corruption error  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
Peter Geoghegan <pg@bowt.ie> writes:

> On Thu, Aug 19, 2021 at 9:38 AM Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
>> A customer recently hit this error message:
>>
>> ERROR:  t_xmin is uncommitted in tuple to be updated
>>
>> This was not very informative, so without any clues, we had to let it
>> go.  But it did occur to me that we can improve this message so that we
>> know details such as the TID and the relation that caused the issue, so
>> that if it ever occurs again we can at least look at the WAL stream for
>> anything affecting the tuple, maybe it'd help to understand the problem.
>
> I think that this is a very good idea. Ideally this stuff would be
> more standardized.

There are various functions for adding auxilliary fields to the error
report, e.g. errtable() for the schema and table names, but that only
seems to be reported to the client, not logged on the server.

Should we be logging auxiliary error fields?  If not by default, maybe
by a higher log_error_verbosity level (possibly a new one between
default and verbose).

- ilmari



pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: reporting TID/table with corruption error
Next
From: Mark Dilger
Date:
Subject: Re: reporting TID/table with corruption error