Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index616
pg_stat_progress_vacuum.phaseCurrent processing phase of vacuum. See Table 27.52.
pg_stat_progress_vacuum
Current processing phase of vacuum. See Table 28.22.
SELECT phase FROM pg_catalog.pg_stat_progress_vacuum;
View …
pg_stat_progress_vacuum.pidProcess ID of backend.
pg_stat_progress_vacuum
SELECT pid FROM pg_catalog.pg_stat_progress_vacuum;
View pg_stat_progress_vacuum
Field pid
SQL type integer
Units named in the field definitio…
pg_stat_progress_vacuum.relidOID of the table being vacuumed.
pg_stat_progress_vacuum
SELECT relid FROM pg_catalog.pg_stat_progress_vacuum;
View pg_stat_progress_vacuum
Field relid
SQL type oid
Units named in the field…
pg_stat_progress_vacuum.started_byShows what caused the current VACUUM operation to be started. Possible values are:
manual: The vacuum was started by an explicit VACUUM command. autovacuum: The vacuum was started by an aut…
pg_stat_recovery.current_chunk_start_timeTime when the startup process observed that replay had caught up with the latest WAL chunk received from streaming replication. Used in recovery-conflict timing and replay/apply-lag diagnost…
pg_stat_recovery.last_replayed_end_lsnEnd write-ahead log location, plus one, of the last successfully replayed WAL record.
pg_stat_recovery
SELECT last_replayed_end_lsn FROM pg_catalog.pg_stat_recovery;
View pg_stat_recovery
F…
pg_stat_recovery.last_replayed_read_lsnStart write-ahead log location of the last successfully replayed WAL record.
pg_stat_recovery
SELECT last_replayed_read_lsn FROM pg_catalog.pg_stat_recovery;
View pg_stat_recovery
Field las…
pg_stat_recovery.last_replayed_tliTimeline of the last successfully replayed WAL record.
pg_stat_recovery
SELECT last_replayed_tli FROM pg_catalog.pg_stat_recovery;
View pg_stat_recovery
Field last_replayed_tli
SQL type int…
pg_stat_recovery.pause_stateRecovery pause state. Possible values are:
not paused: Recovery is proceeding normally. pause requested: A pause has been requested but recovery has not yet paused. paused: Recovery is paus…
pg_stat_recovery.promote_triggeredTrue if a promotion has been triggered.
pg_stat_recovery
SELECT promote_triggered FROM pg_catalog.pg_stat_recovery;
View pg_stat_recovery
Field promote_triggered
SQL type boolean
Units name…
pg_stat_recovery.recovery_last_xact_timeTimestamp of the last transaction commit or abort record replayed during recovery. This is the time at which the commit or abort WAL record for that transaction was generated on the primary.…
pg_stat_recovery.replay_end_lsnWrite-ahead log location of the record currently being replayed (end position plus one). When no record is being actively replayed, equals last_replayed_end_lsn.
pg_stat_recovery
SELECT rep…
pg_stat_recovery.replay_end_tliTimeline of the WAL record currently being replayed. When no record is being actively replayed, equals last_replayed_tli.
pg_stat_recovery
SELECT replay_end_tli FROM pg_catalog.pg_stat_reco…
pg_stat_recovery_prefetch.block_distanceHow many blocks ahead the prefetcher is looking
pg_stat_recovery_prefetch
SELECT block_distance FROM pg_catalog.pg_stat_recovery_prefetch;
View pg_stat_recovery_prefetch
Field block_distanc…
pg_stat_recovery_prefetch.hitNumber of blocks not prefetched because they were already in the buffer pool
pg_stat_recovery_prefetch
SELECT hit FROM pg_catalog.pg_stat_recovery_prefetch;
View pg_stat_recovery_prefetch
F…
pg_stat_recovery_prefetch.io_depthHow many prefetches have been initiated but are not yet known to have completed
pg_stat_recovery_prefetch
SELECT io_depth FROM pg_catalog.pg_stat_recovery_prefetch;
View pg_stat_recovery_pr…
pg_stat_recovery_prefetch.prefetchNumber of blocks prefetched because they were not in the buffer pool
pg_stat_recovery_prefetch
SELECT prefetch FROM pg_catalog.pg_stat_recovery_prefetch;
View pg_stat_recovery_prefetch
Fiel…
pg_stat_recovery_prefetch.skip_fpwNumber of blocks not prefetched because a full page image was included in the WAL
pg_stat_recovery_prefetch
SELECT skip_fpw FROM pg_catalog.pg_stat_recovery_prefetch;
View pg_stat_recovery_…
pg_stat_recovery_prefetch.skip_initNumber of blocks not prefetched because they would be zero-initialized
pg_stat_recovery_prefetch
SELECT skip_init FROM pg_catalog.pg_stat_recovery_prefetch;
View pg_stat_recovery_prefetch
F…
pg_stat_recovery_prefetch.skip_newNumber of blocks not prefetched because they didn't exist yet
pg_stat_recovery_prefetch
SELECT skip_new FROM pg_catalog.pg_stat_recovery_prefetch;
View pg_stat_recovery_prefetch
Field skip_…
pg_stat_recovery_prefetch.skip_repNumber of blocks not prefetched because they were already recently prefetched
pg_stat_recovery_prefetch
SELECT skip_rep FROM pg_catalog.pg_stat_recovery_prefetch;
View pg_stat_recovery_pref…
pg_stat_recovery_prefetch.stats_resetTime at which these statistics were last reset
pg_stat_recovery_prefetch
SELECT stats_reset FROM pg_catalog.pg_stat_recovery_prefetch;
View pg_stat_recovery_prefetch
Field stats_reset
SQL t…
pg_stat_recovery_prefetch.wal_distanceHow many bytes ahead the prefetcher is looking
pg_stat_recovery_prefetch
SELECT wal_distance FROM pg_catalog.pg_stat_recovery_prefetch;
View pg_stat_recovery_prefetch
Field wal_distance
SQL…
pg_stat_replication.application_nameName of the application that is connected to this WAL sender
pg_stat_replication
SELECT application_name FROM pg_catalog.pg_stat_replication;
View pg_stat_replication
Field application_name…
pg_stat_replication.backend_startTime when this process was started, i.e., when the client connected to this WAL sender
pg_stat_replication
SELECT backend_start FROM pg_catalog.pg_stat_replication;
View pg_stat_replication…
pg_stat_replication.backend_xminThis standby's xmin horizon reported by hot_standby_feedback. This field will be null if a replication slot is used (in this case, the standby's xmin is shown in pg_replication_slots) or if …
pg_stat_replication.client_addrIP address of the client connected to this WAL sender. If this field is null, it indicates that the client is connected via a Unix socket on the server machine.
pg_stat_replication
SELECT c…
pg_stat_replication.client_hostnameHost name of the connected client, as reported by a reverse DNS lookup of client_addr. This field will only be non-null for IP connections, and only when log_hostname is enabled.
pg_stat_re…
pg_stat_replication.client_portTCP port number that the client is using for communication with this WAL sender, or -1 if a Unix socket is used
pg_stat_replication
SELECT client_port FROM pg_catalog.pg_stat_replication;
V…
pg_stat_replication.flush_lagTime elapsed between flushing recent WAL locally and receiving notification that this standby server has written and flushed it (but not yet applied it). This can be used to gauge the delay …
pg_stat_replication.flush_lsnLast write-ahead log location flushed to disk by this standby server
pg_stat_replication
SELECT flush_lsn FROM pg_catalog.pg_stat_replication;
View pg_stat_replication
Field flush_lsn
SQL t…
pg_stat_replication.pidProcess ID of a WAL sender process
pg_stat_replication
SELECT pid FROM pg_catalog.pg_stat_replication;
View pg_stat_replication
Field pid
SQL type integer
Units named in the field definitio…
pg_stat_replication.replay_lagTime elapsed between flushing recent WAL locally and receiving notification that this standby server has written, flushed and applied it. This can be used to gauge the delay that synchronous…
pg_stat_replication.replay_lsnLast write-ahead log location replayed into the database on this standby server
pg_stat_replication
SELECT replay_lsn FROM pg_catalog.pg_stat_replication;
View pg_stat_replication
Field rep…
pg_stat_replication.reply_timeSend time of last reply message received from standby server
pg_stat_replication
SELECT reply_time FROM pg_catalog.pg_stat_replication;
View pg_stat_replication
Field reply_time
SQL type ti…
pg_stat_replication.sent_lsnLast write-ahead log location sent on this connection
pg_stat_replication
SELECT sent_lsn FROM pg_catalog.pg_stat_replication;
View pg_stat_replication
Field sent_lsn
SQL type pg_lsn
Units …
pg_stat_replication.stateCurrent WAL sender state. Possible values are:
startup: This WAL sender is starting up. catchup: This WAL sender's connected standby is catching up with the primary. streaming: This WAL sen…
pg_stat_replication.sync_priorityPriority of this standby server for being chosen as the synchronous standby in a priority-based synchronous replication. This has no effect in a quorum-based synchronous replication.
pg_sta…
pg_stat_replication.sync_stateSynchronous state of this standby server. Possible values are:
async: This standby server is asynchronous. potential: This standby server is now asynchronous, but can potentially become syn…
pg_stat_replication.usenameName of the user logged into this WAL sender process
pg_stat_replication
SELECT usename FROM pg_catalog.pg_stat_replication;
View pg_stat_replication
Field usename
SQL type name
Units named…
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
Searching every version by default. Manual pages are indexed for PostgreSQL 10–20; the reference library and extension catalogue are not version-bound.
all: every version pg17: one version ex: extensions only ↑↓ select ↵ open