Updated on 2024-05-07 GMT+08:00

PG_GET_SENDERS_CATCHUP_TIME

PG_GET_SENDERS_CATCHUP_TIME displays catchup information of the currently active primary/standby instance sender thread on the DN.

Table 1 PG_GET_SENDERS_CATCHUP_TIME columns

Name

Type

Description

pid

bigint

Current sender thread ID.

lwpid

integer

Current sender lwpid.

local_role

text

Local role.

peer_role

text

Peer role.

state

text

Current sender's replication status

  • Startup: startup state.
  • Backup: backup state.
  • Catchup: catch-up state, which indicates that the standby node is catching up with the primary node.
  • Streaming: streaming replication state. When the standby node catches up with the primary node, the replication remains in this state.

type

text

Current sender type

  • Wal: type that logs are written in advance.
  • Data: data type.

catchup_start

timestamp with time zone

Startup time of a catchup task.

catchup_end

timestamp with time zone

End time of the catchup task.