]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix the display of UNKNOWN message type in apply worker.
authorAmit Kapila <akapila@postgresql.org>
Tue, 25 Jul 2023 03:20:37 +0000 (08:50 +0530)
committerAmit Kapila <akapila@postgresql.org>
Tue, 25 Jul 2023 03:20:37 +0000 (08:50 +0530)
commit2864eb977a6e49d4355b679d7e1e54f01a231b80
treed3c64e0b06fbb9568b3d8289b8c76b1c88cea77f
parent3bb8b9342f8abe81af47ff7e5217865107cc15b3
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
src/backend/replication/logical/proto.c
src/backend/replication/logical/worker.c
src/include/replication/logicalproto.h