review: add COPY_DATA_TAG mention

This commit is contained in:
Vlad Lazar
2024-11-18 11:26:07 +01:00
parent 901b8e4967
commit 27eb5e6a19

View File

@@ -1013,7 +1013,9 @@ impl BeMessage<'_> {
}
BeMessage::InterpretedWalRecords(rec) => {
buf.put_u8(b'd'); // arbitrary byte
// We use the COPY_DATA_TAG for our custom message
// since this tag is interpreted as raw bytes.
buf.put_u8(b'd');
write_body(buf, |buf| {
buf.put_u8(b'0'); // matches INTERPRETED_WAL_RECORD_TAG in postgres-protocol
// dependency