encode_standby_status_update

Function encode_standby_status_update 

Source
pub fn encode_standby_status_update(
    applied: Lsn,
    client_time_micros: i64,
    reply_requested: bool,
) -> Vec<u8> 
Expand description

Encode a StandbyStatusUpdate message.

This message reports the client’s replay position to the server. All three LSN fields (write, flush, apply) are set to the same value.

§Arguments

  • applied - The LSN up to which the client has processed data
  • client_time_micros - Client timestamp in microseconds since 2000-01-01
  • reply_requested - If true, server should send a reply (usually false)

§Returns

Raw bytes suitable for sending via CopyData