summaryrefslogtreecommitdiff
path: root/src/include/replication/message.h
diff options
context:
space:
mode:
authorAlvaro Herrera2020-09-10 22:37:02 +0000
committerAlvaro Herrera2020-09-10 22:37:02 +0000
commit9f1cf97bb5387a6243c8a6c9725616ef7447962e (patch)
tree25c9135b921060ada50579f9321ce4d492694efb /src/include/replication/message.h
parent58c6feccfae1321ea4ff16c535c6f3fb90a07d69 (diff)
Print WAL logical message contents in pg_waldump
This helps debuggability when looking at WAL streams containing logical messages. Author: Ashutosh Bapat <[email protected]> Reviewed-by: Álvaro Herrera <[email protected]> Discussion: https://postgr.es/m/CAExHW5sWx49rKmXbg5H1Xc1t+nRv9PaYKQmgw82HPt6vWDVmDg@mail.gmail.com
Diffstat (limited to 'src/include/replication/message.h')
-rw-r--r--src/include/replication/message.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/replication/message.h b/src/include/replication/message.h
index 937addde485..e97891ebcaf 100644
--- a/src/include/replication/message.h
+++ b/src/include/replication/message.h
@@ -23,9 +23,8 @@ typedef struct xl_logical_message
bool transactional; /* is message transactional? */
Size prefix_size; /* length of prefix */
Size message_size; /* size of the message */
- char message[FLEXIBLE_ARRAY_MEMBER]; /* message including the null
- * terminated prefix of length
- * prefix_size */
+ /* payload, including null-terminated prefix of length prefix_size */
+ char message[FLEXIBLE_ARRAY_MEMBER];
} xl_logical_message;
#define SizeOfLogicalMessage (offsetof(xl_logical_message, message))