Re: reporting TID/table with corruption error

Поиск
Список
Период
Сортировка
От Dagfinn Ilmari Mannsåker
Тема Re: reporting TID/table with corruption error
Дата
Msg-id 87y28xuyk0.fsf@wibble.ilmari.org
обсуждение исходный текст
Ответ на reporting TID/table with corruption error  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список 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 по дате отправления:

Предыдущее
От: Andrey Borodin
Дата:
Сообщение: Re: reporting TID/table with corruption error
Следующее
От: Mark Dilger
Дата:
Сообщение: Re: reporting TID/table with corruption error