Re: pgsql: Don't try to print data type names in slot_store_error_callback(

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Don't try to print data type names in slot_store_error_callback(
Дата
Msg-id 1963079.1625757708@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Don't try to print data type names in slot_store_error_callback(  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Jul 2, 2021 at 4:05 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The existing code tried to do syscache lookups in an already-failed
>> transaction, which is problematic to say the least.

> Why didn't the assertion in SearchCatCacheInternal() catch this? Was
> this code never actually tested?

It wasn't tested under conditions in which a catalog lookup would
be at real risk of failing --- and I'm not sure that we have any
way to do that mechanically.  See discussion downthread about when
a transaction could be considered "failed".

            regards, tom lane



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

Предыдущее
От: "Drouvot, Bertrand"
Дата:
Сообщение: Re: visibility map corruption
Следующее
От: Robert Haas
Дата:
Сообщение: Re: refactoring basebackup.c