Updated on 2023-10-23 GMT+08:00

GLOBAL_REPLICATION_SLOTS

GLOBAL_REPLICATION_SLOTS displays information about replicated slots on each node in the cluster.

Table 1 GLOBAL_REPLICATION_SLOTS columns

Name

Type

Description

node_name

name

Node name

slot_name

text

Replication slot name.

plugin

text

Name of the output plug-in corresponding to the logical replication slot.

slot_type

text

Replication slot type.
  • physical: physical replication slot.
  • logical: logical replication slot.

datoid

oid

OID of the database where the replication slot resides.

database

name

Name of the database where the replication slot resides.

active

boolean

Determines whether the replication slot is activated.
  • t (true): yes
  • f (false): no

x_min

xid

XID of the earliest transaction that the database must reserve for the replication slot.

catalog_xmin

xid

XID of the earliest system catalog-involved transaction that the database must reserve for the logical replication slot.

restart_lsn

text

Physical location of the earliest Xlog required by the replication slot.

dummy_standby

boolean

Determines whether the peer end connected to the replication slot is a secondary node.
  • t (true): yes
  • f (false): no