logicalrep_message_type throws an error - Mailing list pgsql-hackers

From Ashutosh Bapat
Subject logicalrep_message_type throws an error
Date
Msg-id CAExHW5suAEDW-mBZt_qu4RVxWZ1vL54-L+ci2zreYWebpzxYsA@mail.gmail.com
Whole thread Raw
Responses Re: logicalrep_message_type throws an error
List 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 by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Commitfest manager for July
Next
From: Matthias van de Meent
Date:
Subject: Re: XLog size reductions: Reduced XLog record header size for PG17