Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Popular entries9997
pg_sortstatsCollect per-query sort statistics and estimate required work_mem
sort statistics work_mem
pg_sortstats
Monitoring
pg_spherespherical objects with useful functions, operators and index support
pgsphere
Data types
pg_spiFailing test case for SPI rollback
pg_spi
Features
pg_spladeGenerate SPLADE sparse-vector embeddings inside PostgreSQL
embedding pgrx sparse-vector splade
pg_splade
AI and vectors
pg_sqidsEncode numbers as short URL-safe Sqids and decode them in PostgreSQL
id-encoding link-shortening pgrx sqids
pg_sqids
Functions and aggregates
pg_sqlite_fsSQLite File System creation
pg_sqlite_fs
Utilities
pg_sqlogProvide SQL interface to logs
pg_sqlog
Monitoring
pg_squeezeA tool to remove unused space from a relation.
pg_squeeze
Administration
pg_sshRun remote commands over SSH from PostgreSQL (libssh2; in-memory private-key auth)
pgrx rust
pg_ssh
Utilities
pg_sslCreate base64-encoded PKCS#7 signatures from PEM certificates and private keys in PostgreSQL
pkcs7 signing ssl
pg_ssl
Security
pg_sslstatusHistorical SSL connection-status views for PostgreSQL releases before 9.5.
ssl tls connection monitoring
pg_sslstatus
Monitoring
pg_start_sqlruns SQL statement at instance start
c configuration postgresql postgresql-extension start
pg_start_sql
Administration
pg_stash_adviceStore plan advice by query ID and automatically apply it during PostgreSQL query planning
plan-advice planner query-id shared-memory
postgresql
Administration
pg_stat_activityThe pg_stat_activity view will have one row per server process, showing information related to the current activity of that process.
Table 27.3. pg_stat_activity View Column Type Description…
pg_stat_all_indexesThe pg_stat_all_indexes view will contain one row for each index in the current database, showing statistics about accesses to that specific index. The pg_stat_user_indexes and pg_stat_sys_i…
pg_stat_all_tablesThe pg_stat_all_tables view will contain one row for each table in the current database (including TOAST tables), showing statistics about accesses to that specific table. The pg_stat_user_t…
pg_stat_archiverThe pg_stat_archiver view will always have a single row, containing data about the archiver process of the cluster.
Table 27.22. pg_stat_archiver View Column Type Description archived_count …
pg_stat_backtraceCapture or log C-level stack backtraces of PostgreSQL processes
pg_stat_backtrace
Monitoring
pg_stat_bgwriterThe pg_stat_bgwriter view will always have a single row, containing data about the background writer of the cluster.
Table 27.24. pg_stat_bgwriter View Column Type Description buffers_clean …
pg_stat_chExport PostgreSQL query telemetry to ClickHouse
pg_stat_ch
Monitoring
pg_stat_checkpointerThe pg_stat_checkpointer view will always have a single row, containing data about the checkpointer process of the cluster.
Table 27.25. pg_stat_checkpointer View Column Type Description num…
pg_stat_clear_snapshot() → void Discards the current statistics snapshot or cached information.
pg_stat_cluster_activitytrack execution statistics in whole cluster scope
pg_stat_cluster_activity
Monitoring
pg_stat_connCumulative connection, disconnection, and authentication-failure counts by database and role.
connection authentication statistics monitoring
pg_stat_conn
Monitoring
pg_stat_databaseThe pg_stat_database view will contain one row for each database in the cluster, plus one for shared objects, showing database-wide statistics.
Table 27.27. pg_stat_database View Column Type…
pg_stat_database_conflictsThe pg_stat_database_conflicts view will contain one row per database, showing database-wide statistics about query cancels occurring due to conflicts with recovery on standby servers. This …
pg_stat_errorTencentDB provider-managed error statistics extension; version 1.0 is currently listed for PostgreSQL 10-13.
error-statistics monitoring
pg_stat_error
Monitoring
pg_stat_errorsCluster-wide error-class counters with a bounded sample of recent errors.
error statistics monitoring shared-memory
pg_stat_errors
Monitoring
pg_stat_get_activity( integer ) → setof record Returns a record of information about the backend with the specified process ID, or one record for each active backend in the system if NULL is specified. The fiel…
pg_stat_get_backend_activity( integer ) → text Returns the text of this backend's most recent query.
pg_stat_get_backend_activity_start( integer ) → timestamp with time zone Returns the time when the backend's most recent query was started.
pg_stat_get_backend_client_addr( integer ) → inet Returns the IP address of the client connected to this backend.
pg_stat_get_backend_client_port( integer ) → integer Returns the TCP port number that the client is using for communication.
pg_stat_get_backend_dbid( integer ) → oid Returns the OID of the database this backend is connected to.
pg_stat_get_backend_idset() → setof integer Returns the set of currently active backend ID numbers.
pg_stat_get_backend_io( integer ) → setof record Returns I/O statistics about the backend with the specified process ID. The output fields are exactly the same as the ones in the pg_stat_io view. The function doe…
pg_stat_get_backend_pid( integer ) → integer Returns the process ID of this backend.
pg_stat_get_backend_start( integer ) → timestamp with time zone Returns the time when this process was started.
pg_stat_get_backend_subxact( integer ) → record Returns a record of information about the subtransactions of the backend with the specified ID. The fields returned are subxact_count, which is the number of subtransact…
pg_stat_get_backend_userid( integer ) → oid Returns the OID of the user logged into this backend.
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