pg_stat_ssl
The pg_stat_ssl view will contain one row per backend or WAL sender process, showing statistics about SSL usage on this connection. It can be joined to pg_stat_activity or pg_stat_replication on the pid column to get more details about the connection.
English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- kind
- statistics
- lang
- en
- measured attributes
- true
- metadata release
- 18.6
- runtime columns
- pid, ssl, version, cipher, bits, client_dn, client_serial, issuer_dn
- runtime verified
- false
- source
- english-manual
Definition PG 18
The pg_stat_ssl view will contain one row per backend or WAL sender process, showing statistics about SSL usage on this connection. It can be joined to pg_stat_activity or pg_stat_replication on the pid column to get more details about the connection.
Catalog columns
| Column | Type | Nullability | Description |
|---|---|---|---|
| pid | integer | Nullable | Process ID of a backend or WAL sender process |
| ssl | boolean | Nullable | True if SSL is used on this connection |
| version | text | Nullable | Version of SSL in use, or NULL if SSL is not in use on this connection |
| cipher | text | Nullable | Name of SSL cipher in use, or NULL if SSL is not in use on this connection |
| bits | integer | Nullable | Number of bits in the encryption algorithm used, or NULL if SSL is not used on this connection |
| client_dn | text | Nullable | Distinguished Name (DN) field from the client certificate used, or NULL if no client certificate was supplied or if SSL is not in use on this connection. This field is truncated if the DN field is longer than NAMEDATALEN (64 characters in a standard build). |
| client_serial | numeric | Nullable | Serial number of the client certificate, or NULL if no client certificate was supplied or if SSL is not in use on this connection. The combination of certificate serial number and certificate issuer uniquely identifies a certificate (unless the issuer erroneously reuses serial numbers). |
| issuer_dn | text | Nullable | DN of the issuer of the client certificate, or NULL if no client certificate was supplied or if SSL is not in use on this connection. This field is truncated like client_dn. |
Compare versions
Complete source facts
documentation revision
{"inputs":[{"file":"monitoring-stats.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"a97e4aa05484b41cec1f4c9b0b9c5a083596a056982e5d5ba0db1dd8d49961fb","version":"18.7"},{"file":"monitoring-stats.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"1ddb6576fe569e029a1c776c82e7add6be8e4f41705bcd8f66f4347fe23372b6","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · catalog-bilingual-repair:fddb677b7280e8604a086d1bab09b3c2ef0849aa0ae31e4df361f2eedc1faa94
Text language: en · catalog-bilingual-repair:fddb677b7280e8604a086d1bab09b3c2ef0849aa0ae31e4df361f2eedc1faa94