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

GS_GLOBAL_ARCHIVE_STATUS

GS_GLOBAL_ARCHIVE_STATUS describes the archiving progress of DNs and all shards, including the shard name (node_name), archiving location (restart_lsn), name of the primary or standby node (archive_node), and current log location (current_xlog_location). To query this view, you need to enable the archiving function of the database and query the view from the primary DN.

Table 1 GS_GLOBAL_ARCHIVE_STATUS columns

Name

Type

Description

node_name

text

Shard name.

restart_lsn

text

Archiving location.

archive_node

text

Name of the primary or standby node where archiving is performed.

current_xlog_location

text

Current log position.