logicalrep_message_type throws an error

Поиск
Список
Период
Сортировка
От Ashutosh Bapat
Тема logicalrep_message_type throws an error
Дата
Msg-id CAExHW5suAEDW-mBZt_qu4RVxWZ1vL54-L+ci2zreYWebpzxYsA@mail.gmail.com
обсуждение исходный текст
Ответы Re: logicalrep_message_type throws an error  ("Euler Taveira" <euler@eulerto.com>)
Список pgsql-hackers
Hi All,
logicalrep_message_type() is used to convert logical message type code
into name while prepared error context or details. Thus when this
function is called probably an ERROR is already raised. If
logicalrep_message_type() gets an unknown message type, it will throw
an error, which will suppress the error for which we are building
context or details. That's not useful. I think instead
logicalrep_message_type() should return "unknown" when it encounters
an unknown message type and let the original error message be thrown
as is.

-- 
Best Wishes,
Ashutosh Bapat



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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Commitfest manager for July
Следующее
От: Matthias van de Meent
Дата:
Сообщение: Re: XLog size reductions: Reduced XLog record header size for PG17