↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

System Catalogs / Statistics views

pg_stat_subscription

Read the PG 18 manual

At least one row per subscription, showing information about the subscription workers.

Reading PG 18current·documented in 11 of 24 versions, 10 to 20

Kind
Statistics views
Columns in this snapshot
11
Definition source
English manual
Metadata snapshot
18.6

Columns 11

As listed in the PostgreSQL 18 manual.

ColumnTypeDescription / reference
subidoidOID of the subscription
subnamenameName of the subscription
worker_typetextType of the subscription worker process. Possible types are apply, parallel apply, and table synchronization.
pidintegerProcess ID of the subscription worker process
leader_pidintegerProcess ID of the leader apply worker if this process is a parallel apply worker; NULL if this process is a leader apply worker or a table synchronization worker
relidoidOID of the relation that the worker is synchronizing; NULL for the leader apply worker and parallel apply workers
received_lsnpg_lsnLast write-ahead log location received, the initial value of this field being 0; NULL for parallel apply workers
last_msg_send_timetimestamp with time zoneSend time of last message received from origin WAL sender; NULL for parallel apply workers
last_msg_receipt_timetimestamp with time zoneReceipt time of last message received from origin WAL sender; NULL for parallel apply workers
latest_end_lsnpg_lsnLast write-ahead log location reported to origin WAL sender; NULL for parallel apply workers
latest_end_timetimestamp with time zoneTime of last write-ahead log location reported to origin WAL sender; NULL for parallel apply workers
Column history across versions
Version history 6
  1. 18 → 19 reworded
  2. 16 → 17 changed
  3. 15 → 16 changed
  4. 14 → 15 reworded
  5. 12 → 13 reworded
  6. 9.6 → 10 added

Definition snapshot: english-manuals:aa7154b3ebf2636c869025bd0fd… · English manual source