Re: logicalrep_message_type throws an error

Поиск
Список
Период
Сортировка
От Ashutosh Bapat
Тема Re: logicalrep_message_type throws an error
Дата
Msg-id CAExHW5uALEHb=j_n9ar-bWwQ3WXD7J00EkHDGi=zqwPjtfQoyw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: logicalrep_message_type throws an error  (Amit Kapila <amit.kapila16@gmail.com>)
Ответы Re: logicalrep_message_type throws an error  (Masahiko Sawada <sawada.mshk@gmail.com>)
Список pgsql-hackers
On Thu, Jul 20, 2023 at 9:11 AM Amit Kapila <amit.kapila16@gmail.com> wrote:
> >
> > Okay, changed it accordingly.
> >
>
> oops, forgot to attach the patch.
>

WFM

@@ -3367,7 +3367,7 @@ apply_dispatch(StringInfo s)
         default:
             ereport(ERROR,
                     (errcode(ERRCODE_PROTOCOL_VIOLATION),
-                     errmsg("invalid logical replication message type
\"%c\"", action)));
+                     errmsg("invalid logical replication message type
\"??? (%d)\"", action)));

I think we should report character here since that's what is visible
in the code and also the message types are communicated as characters
not integers. Makes debugging easier. Context may report integer as an
additional data point.

--
Best Wishes,
Ashutosh Bapat



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

Предыдущее
От: John Morris
Дата:
Сообщение: Re: Atomic ops for unlogged LSN
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: logical decoding and replication of sequences, take 2