Psycopg2 Replication Message

 

Message Layout

Description in Psycopg2 Documentation

  1. cursor
  2. payload
  3. data_size
  4. data_start
  5. wal_end
  6. send_time

1. Cursor

Mapping and Inheritance

Layout of Cursor

2. Payload

Same as result of pg_logical_slot_get_changes

3. data_size

The raw size of the message payload (before possible unicode conversion).

4. data_start

LSN position of the start of the message.

5. wal_end

LSN position of the current end of WAL on the server.

6. send_time

The server timestamp at the moment when the message was sent in microseconds.