Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index616
pg_stat_database.sessionsTotal number of sessions established to this database
pg_stat_database
SELECT sessions FROM pg_catalog.pg_stat_database;
View pg_stat_database
Field sessions
SQL type bigint
Units named in …
pg_stat_database.sessions_abandonedNumber of database sessions to this database that were terminated because connection to the client was lost
pg_stat_database
SELECT sessions_abandoned FROM pg_catalog.pg_stat_database;
View…
pg_stat_database.sessions_fatalNumber of database sessions to this database that were terminated by fatal errors
pg_stat_database
SELECT sessions_fatal FROM pg_catalog.pg_stat_database;
View pg_stat_database
Field sessio…
pg_stat_database.sessions_killedNumber of database sessions to this database that were terminated by operator intervention
pg_stat_database
SELECT sessions_killed FROM pg_catalog.pg_stat_database;
View pg_stat_database
Fi…
pg_stat_database.stats_resetTime at which these statistics were last reset
pg_stat_database
SELECT stats_reset FROM pg_catalog.pg_stat_database;
View pg_stat_database
Field stats_reset
SQL type timestamp with time zon…
pg_stat_database.temp_bytesTotal amount of data written to temporary files by queries in this database. All temporary files are counted, regardless of why the temporary file was created, and regardless of the log_temp…
pg_stat_database.temp_filesNumber of temporary files created by queries in this database. All temporary files are counted, regardless of why the temporary file was created (e.g., sorting or hashing), and regardless of…
pg_stat_database.tup_deletedNumber of rows deleted by queries in this database
pg_stat_database
SELECT tup_deleted FROM pg_catalog.pg_stat_database;
View pg_stat_database
Field tup_deleted
SQL type bigint
Units named …
pg_stat_database.tup_fetchedNumber of live rows fetched by index scans in this database
pg_stat_database
Number of rows fetched by queries in this database
SELECT tup_fetched FROM pg_catalog.pg_stat_database;
View pg_…
pg_stat_database.tup_insertedNumber of rows inserted by queries in this database
pg_stat_database
SELECT tup_inserted FROM pg_catalog.pg_stat_database;
View pg_stat_database
Field tup_inserted
SQL type bigint
Units nam…
pg_stat_database.tup_returnedNumber of live rows fetched by sequential scans and index entries returned by index scans in this database
pg_stat_database
Number of rows returned by queries in this database
SELECT tup_re…
pg_stat_database.tup_updatedNumber of rows updated by queries in this database
pg_stat_database
SELECT tup_updated FROM pg_catalog.pg_stat_database;
View pg_stat_database
Field tup_updated
SQL type bigint
Units named …
pg_stat_database.xact_commitNumber of transactions in this database that have been committed
pg_stat_database
SELECT xact_commit FROM pg_catalog.pg_stat_database;
View pg_stat_database
Field xact_commit
SQL type bigin…
pg_stat_database.xact_rollbackNumber of transactions in this database that have been rolled back
pg_stat_database
SELECT xact_rollback FROM pg_catalog.pg_stat_database;
View pg_stat_database
Field xact_rollback
SQL type…
pg_stat_database_conflicts.confl_active_logicalslotNumber of uses of logical slots in this database that have been canceled due to old snapshots or too low a wal_level on the primary
pg_stat_database_conflicts
SELECT confl_active_logicalslo…
pg_stat_database_conflicts.confl_bufferpinNumber of queries in this database that have been canceled due to pinned buffers
pg_stat_database_conflicts
SELECT confl_bufferpin FROM pg_catalog.pg_stat_database_conflicts;
View pg_stat_d…
pg_stat_database_conflicts.confl_deadlockNumber of queries in this database that have been canceled due to deadlocks
pg_stat_database_conflicts
SELECT confl_deadlock FROM pg_catalog.pg_stat_database_conflicts;
View pg_stat_databas…
pg_stat_database_conflicts.confl_lockNumber of queries in this database that have been canceled due to lock timeouts
pg_stat_database_conflicts
SELECT confl_lock FROM pg_catalog.pg_stat_database_conflicts;
View pg_stat_databas…
pg_stat_database_conflicts.confl_snapshotNumber of queries in this database that have been canceled due to old snapshots
pg_stat_database_conflicts
SELECT confl_snapshot FROM pg_catalog.pg_stat_database_conflicts;
View pg_stat_dat…
pg_stat_database_conflicts.confl_tablespaceNumber of queries in this database that have been canceled due to dropped tablespaces
pg_stat_database_conflicts
SELECT confl_tablespace FROM pg_catalog.pg_stat_database_conflicts;
View pg_…
pg_stat_database_conflicts.datidOID of a database
pg_stat_database_conflicts
SELECT datid FROM pg_catalog.pg_stat_database_conflicts;
View pg_stat_database_conflicts
Field datid
SQL type oid
Units named in the field defin…
pg_stat_database_conflicts.datnameName of this database
pg_stat_database_conflicts
SELECT datname FROM pg_catalog.pg_stat_database_conflicts;
View pg_stat_database_conflicts
Field datname
SQL type name
Units named in the fi…
pg_stat_database_conflicts.stats_resetTime at which these statistics were last reset
pg_stat_database_conflicts
SELECT stats_reset FROM pg_catalog.pg_stat_database_conflicts;
View pg_stat_database_conflicts
Field stats_reset
SQ…
pg_stat_gssapi.credentials_delegatedTrue if GSSAPI credentials were delegated on this connection.
pg_stat_gssapi
SELECT credentials_delegated FROM pg_catalog.pg_stat_gssapi;
View pg_stat_gssapi
Field credentials_delegated
SQL…
pg_stat_gssapi.encryptedTrue if GSSAPI encryption is in use on this connection
pg_stat_gssapi
SELECT encrypted FROM pg_catalog.pg_stat_gssapi;
View pg_stat_gssapi
Field encrypted
SQL type boolean
Units named in th…
pg_stat_gssapi.gss_authenticatedTrue if GSSAPI authentication was used for this connection
pg_stat_gssapi
SELECT gss_authenticated FROM pg_catalog.pg_stat_gssapi;
View pg_stat_gssapi
Field gss_authenticated
SQL type boole…
pg_stat_gssapi.pidProcess ID of a backend
pg_stat_gssapi
SELECT pid FROM pg_catalog.pg_stat_gssapi;
View pg_stat_gssapi
Field pid
SQL type integer
Units named in the field definition Not specified
Reset obse…
pg_stat_gssapi.principalPrincipal used to authenticate this connection, or NULL if GSSAPI was not used to authenticate this connection. This field is truncated if the principal is longer than NAMEDATALEN (64 charac…
pg_stat_io.backend_typeType of backend (e.g. background worker, autovacuum worker). See pg_stat_activity for more information on backend_types. Some backend_types do not accumulate I/O operation statistics and wil…
pg_stat_io.contextThe context of an I/O operation. Possible values are:
normal: The default or standard context for a type of I/O operation. For example, by default, relation data is read into and written ou…
pg_stat_io.evictionsNumber of times a block has been written out from a shared or local buffer in order to make it available for another use.
In context normal, this counts the number of times a block was evic…
pg_stat_io.extend_bytesThe total size of relation extend operations in bytes.
pg_stat_io
SELECT extend_bytes FROM pg_catalog.pg_stat_io;
View pg_stat_io
Field extend_bytes
SQL type numeric
Units named in the fiel…
pg_stat_io.extend_timeTime spent waiting for extend 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_st…
pg_stat_io.extendsNumber of relation extend operations.
pg_stat_io
Number of relation extend operations, each of the size specified in op_bytes.
SELECT extends FROM pg_catalog.pg_stat_io;
View pg_stat_io
Fie…
pg_stat_io.fsync_timeTime spent waiting for fsync 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.fsyncsNumber of fsync calls. These are only tracked in context normal.
pg_stat_io
SELECT fsyncs FROM pg_catalog.pg_stat_io;
View pg_stat_io
Field fsyncs
SQL type bigint
Units named in the field d…
pg_stat_io.hitsThe number of times a desired block was found in a shared buffer.
pg_stat_io
SELECT hits FROM pg_catalog.pg_stat_io;
View pg_stat_io
Field hits
SQL type bigint
Units named in the field defi…
pg_stat_io.objectTarget object of an I/O operation. Possible values are:
relation: Permanent relations. temp relation: Temporary relations. wal: Write Ahead Logs.
pg_stat_io
Target object of an I/O operati…
pg_stat_io.op_bytesThe number of bytes per unit of I/O read, written, or extended.
Relation data reads, writes, and extends are done in block_size units, derived from the build-time parameter BLCKSZ, which is…
pg_stat_io.read_bytesThe total size of read operations in bytes.
pg_stat_io
SELECT read_bytes FROM pg_catalog.pg_stat_io;
View pg_stat_io
Field read_bytes
SQL type numeric
Units named in the field definition by…
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