pgsql: Fix the display of iso-8859-1 message type in apply worker.

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Fix the display of iso-8859-1 message type in apply worker.
Дата
Msg-id E1qO967-001DLh-T6@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix the display of UNKNOWN message type in apply worker.

We include the message type while displaying an error context in the
apply worker. Now, while retrieving the message type string if the
message type is unknown we throw an error that will hide the original
error. So, instead, we need to simply return the string indicating an
unknown message type.

Reported-by: Ashutosh Bapat
Author: Euler Taveira, Amit Kapila
Reviewed-by: Ashutosh Bapat
Backpatch-through: 15
Discussion: https://postgr.es/m/CAExHW5suAEDW-mBZt_qu4RVxWZ1vL54-L+ci2zreYWebpzxYsA@mail.gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2864eb977a6e49d4355b679d7e1e54f01a231b80

Modified Files
--------------
src/backend/replication/logical/proto.c  | 13 ++++++++++---
src/backend/replication/logical/worker.c |  2 +-
src/include/replication/logicalproto.h   |  2 +-
3 files changed, 12 insertions(+), 5 deletions(-)


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Fix off-by-one in LimitAdditionalPins()
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Optimize WAL insertion lock acquisition and release with some at