pub fn encode_standby_status(
write_lsn: Lsn,
flush_lsn: Lsn,
apply_lsn: Lsn,
) -> Vec<u8> ⓘExpand description
Encodes a standby status update message.
Returns the 34-byte message suitable for sending via CopyData.
§Wire Format
Byte 0: 'r' (0x72) — StandbyStatusUpdate tag
Bytes 1-8: write LSN (last WAL position received)
Bytes 9-16: flush LSN (last WAL position flushed to disk)
Bytes 17-24: apply LSN (last WAL position applied)
Bytes 25-32: client timestamp (microseconds since 2000-01-01)
Byte 33: reply requested (always 0 from client)