aboutsummaryrefslogtreecommitdiff
path: root/src/include/replication/logicalproto.h
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2023-07-25 09:12:29 +0530
committerAmit Kapila <akapila@postgresql.org>2023-07-25 09:12:29 +0530
commitd38ad8e31dee1a69f4f6d4b6bb4e007e3751a93c (patch)
treeff3b2c1be20a078b2f0e6f20127a4dc08a07b187 /src/include/replication/logicalproto.h
parentf3bc5192889f6f02aa10ca9f24df4eab1f1493c1 (diff)
downloadpostgresql-d38ad8e31dee1a69f4f6d4b6bb4e007e3751a93c.tar.gz
postgresql-d38ad8e31dee1a69f4f6d4b6bb4e007e3751a93c.zip
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
Diffstat (limited to 'src/include/replication/logicalproto.h')
-rw-r--r--src/include/replication/logicalproto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/replication/logicalproto.h b/src/include/replication/logicalproto.h
index 0ea2df50889..c5be981eae6 100644
--- a/src/include/replication/logicalproto.h
+++ b/src/include/replication/logicalproto.h
@@ -269,6 +269,6 @@ extern void logicalrep_write_stream_abort(StringInfo out, TransactionId xid,
extern void logicalrep_read_stream_abort(StringInfo in,
LogicalRepStreamAbortData *abort_data,
bool read_abort_info);
-extern char *logicalrep_message_type(LogicalRepMsgType action);
+extern const char *logicalrep_message_type(LogicalRepMsgType action);
#endif /* LOGICAL_PROTO_H */