parse_copy_data

Function parse_copy_data 

Source
pub fn parse_copy_data(payload: Bytes) -> Result<ReplicationCopyData>
Expand description

Parse a CopyData payload into a replication message.

The payload should be the CopyData content (after stripping the ā€˜d’ tag and length). Returns either XLogData or KeepAlive depending on the first byte.