Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index616
pg_stat_io.read_timeTime spent waiting for read operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero). This may…
pg_stat_io.readsNumber of read operations.
pg_stat_io
Number of read operations, each of the size specified in op_bytes.
SELECT reads FROM pg_catalog.pg_stat_io;
View pg_stat_io
Field reads
SQL type bigint…
pg_stat_io.reusesThe number of times an existing buffer in a size-limited ring buffer outside of shared buffers was reused as part of an I/O operation in the bulkread, bulkwrite, or vacuum contexts.
pg_stat…
pg_stat_io.stats_resetTime at which these statistics were last reset.
pg_stat_io
SELECT stats_reset FROM pg_catalog.pg_stat_io;
View pg_stat_io
Field stats_reset
SQL type timestamp with time zone
Units named in …
pg_stat_io.write_bytesThe total size of write operations in bytes.
pg_stat_io
SELECT write_bytes FROM pg_catalog.pg_stat_io;
View pg_stat_io
Field write_bytes
SQL type numeric
Units named in the field definition…
pg_stat_io.write_timeTime spent waiting for write operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)
pg_stat…
pg_stat_io.writeback_timeTime spent waiting for writeback operations in milliseconds (if track_io_timing is enabled, otherwise zero). This includes the time spent queueing write-out requests and, potentially, the ti…
pg_stat_io.writebacksNumber of units of size BLCKSZ (typically 8kB) which the process requested the kernel write out to permanent storage.
pg_stat_io
Number of units of size op_bytes which the process requested…
pg_stat_io.writesNumber of write operations.
pg_stat_io
Number of write operations, each of the size specified in op_bytes.
SELECT writes FROM pg_catalog.pg_stat_io;
View pg_stat_io
Field writes
SQL type bi…
pg_stat_kind_info.accessed_across_databasesTrue if entries of this kind are accessed across databases (cluster-wide statistics), false if they are scoped to a single database.
pg_stat_kind_info
SELECT accessed_across_databases FROM …
pg_stat_kind_info.builtinTrue if this is a built-in statistics kind, false if it was registered by an extension.
pg_stat_kind_info
SELECT builtin FROM pg_catalog.pg_stat_kind_info;
View pg_stat_kind_info
Field buil…
pg_stat_kind_info.entry_countNumber of tracked entries for this kind. For variable-numbered kinds, this is the number of objects currently tracked. NULL for fixed-sized statistics kinds, or if the kind does not track en…
pg_stat_kind_info.fixed_amountTrue if this kind tracks a fixed amount of data (a single, statically allocated entry), false if it tracks a variable number of entries keyed by object identifier.
pg_stat_kind_info
SELECT …
pg_stat_kind_info.idNumeric identifier of the statistics kind.
pg_stat_kind_info
SELECT id FROM pg_catalog.pg_stat_kind_info;
View pg_stat_kind_info
Field id
SQL type integer
Units named in the field definitio…
pg_stat_kind_info.nameName of the statistics kind.
pg_stat_kind_info
SELECT name FROM pg_catalog.pg_stat_kind_info;
View pg_stat_kind_info
Field name
SQL type text
Units named in the field definition Not specifi…
pg_stat_kind_info.write_to_fileTrue if entries of this kind are persisted to the statistics file at shutdown and reloaded on startup, false if they are kept only in shared memory.
pg_stat_kind_info
SELECT write_to_file F…
pg_stat_lock.fastpath_exceededNumber of times a lock of this type could not be acquired via fast path because the fast path slot limit was exceeded. Increasing max_locks_per_transaction can reduce this number. See Sectio…
pg_stat_lock.locktypeType of the lockable object. See pg_locks for details.
pg_stat_lock
SELECT locktype FROM pg_catalog.pg_stat_lock;
View pg_stat_lock
Field locktype
SQL type text
Units named in the field def…
pg_stat_lock.stats_resetTime at which these statistics were last reset.
pg_stat_lock
SELECT stats_reset FROM pg_catalog.pg_stat_lock;
View pg_stat_lock
Field stats_reset
SQL type timestamp with time zone
Units nam…
pg_stat_lock.wait_timeTotal time spent waiting for locks of this type, in milliseconds. Only incremented when the lock was successfully acquired after waiting longer than deadlock_timeout.
pg_stat_lock
SELECT wa…
pg_stat_lock.waitsNumber of times a lock of this type had to wait because of a conflicting lock. Only incremented when the lock was successfully acquired after waiting longer than deadlock_timeout.
pg_stat_l…
pg_stat_progress_analyze.child_tables_doneNumber of child tables scanned. This counter only advances when the phase is acquiring inherited sample rows.
pg_stat_progress_analyze
SELECT child_tables_done FROM pg_catalog.pg_stat_progr…
pg_stat_progress_analyze.child_tables_totalNumber of child tables.
pg_stat_progress_analyze
SELECT child_tables_total FROM pg_catalog.pg_stat_progress_analyze;
View pg_stat_progress_analyze
Field child_tables_total
SQL type bigint
U…
pg_stat_progress_analyze.current_child_table_relidOID of the child table currently being scanned. This field is only valid when the phase is acquiring inherited sample rows.
pg_stat_progress_analyze
SELECT current_child_table_relid FROM pg…
pg_stat_progress_analyze.datidOID of the database to which this backend is connected.
pg_stat_progress_analyze
SELECT datid FROM pg_catalog.pg_stat_progress_analyze;
View pg_stat_progress_analyze
Field datid
SQL type oi…
pg_stat_progress_analyze.datnameName of the database to which this backend is connected.
pg_stat_progress_analyze
SELECT datname FROM pg_catalog.pg_stat_progress_analyze;
View pg_stat_progress_analyze
Field datname
SQL ty…
pg_stat_progress_analyze.delay_timeTotal time spent sleeping due to cost-based delay (see Section 19.10.2), in milliseconds (if track_cost_delay_timing is enabled, otherwise zero).
pg_stat_progress_analyze
SELECT delay_time …
pg_stat_progress_analyze.ext_stats_computedNumber of extended statistics computed. This counter only advances when the phase is computing extended statistics.
pg_stat_progress_analyze
SELECT ext_stats_computed FROM pg_catalog.pg_sta…
pg_stat_progress_analyze.ext_stats_totalNumber of extended statistics.
pg_stat_progress_analyze
SELECT ext_stats_total FROM pg_catalog.pg_stat_progress_analyze;
View pg_stat_progress_analyze
Field ext_stats_total
SQL type bigint
…
pg_stat_progress_analyze.phaseCurrent processing phase. See Table 27.43.
pg_stat_progress_analyze
Current processing phase. See Table 27.33.
SELECT phase FROM pg_catalog.pg_stat_progress_analyze;
View pg_stat_progress_a…
pg_stat_progress_analyze.pidProcess ID of backend.
pg_stat_progress_analyze
SELECT pid FROM pg_catalog.pg_stat_progress_analyze;
View pg_stat_progress_analyze
Field pid
SQL type integer
Units named in the field defini…
pg_stat_progress_analyze.relidOID of the table being analyzed.
pg_stat_progress_analyze
SELECT relid FROM pg_catalog.pg_stat_progress_analyze;
View pg_stat_progress_analyze
Field relid
SQL type oid
Units named in the fi…
pg_stat_progress_analyze.sample_blks_scannedNumber of heap blocks scanned.
pg_stat_progress_analyze
SELECT sample_blks_scanned FROM pg_catalog.pg_stat_progress_analyze;
View pg_stat_progress_analyze
Field sample_blks_scanned
SQL type…
pg_stat_progress_analyze.sample_blks_totalTotal number of heap blocks that will be sampled.
pg_stat_progress_analyze
SELECT sample_blks_total FROM pg_catalog.pg_stat_progress_analyze;
View pg_stat_progress_analyze
Field sample_blks…
pg_stat_progress_analyze.started_byShows what caused the current ANALYZE operation to be started. Possible values are:
manual: The analyze was started by an explicit ANALYZE, or by VACUUM with the ANALYZE option. autovacuum:…
pg_stat_progress_basebackup.backup_streamedAmount of data streamed. This counter only advances when the phase is streaming database files or transferring wal files.
pg_stat_progress_basebackup
SELECT backup_streamed FROM pg_catalog.…
pg_stat_progress_basebackup.backup_totalTotal amount of data that will be streamed. This is estimated and reported as of the beginning of streaming database files phase. Note that this is only an approximation since the database m…
pg_stat_progress_basebackup.backup_typeBackup type. Either full or incremental.
pg_stat_progress_basebackup
SELECT backup_type FROM pg_catalog.pg_stat_progress_basebackup;
View pg_stat_progress_basebackup
Field backup_type
SQL t…
pg_stat_progress_basebackup.phaseCurrent processing phase. See Table 27.54.
pg_stat_progress_basebackup
Current processing phase. See Table 27.41.
SELECT phase FROM pg_catalog.pg_stat_progress_basebackup;
View pg_stat_prog…
pg_stat_progress_basebackup.pidProcess ID of a WAL sender process.
pg_stat_progress_basebackup
SELECT pid FROM pg_catalog.pg_stat_progress_basebackup;
View pg_stat_progress_basebackup
Field pid
SQL type integer
Units nam…
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