{"Entry":{"collection":"catalog","key":"pg_stat_ssl","name":"pg_stat_ssl","aliases":[],"metadata":{"changed_in":["12","14"],"changes":[{"added":[],"attributes":[],"description_changed":false,"descriptions":[],"from":"9.4","order":false,"removed":[],"status":"added","to":"9.5","types":[]},{"added":["client_dn","client_serial","issuer_dn"],"attributes":[],"description_changed":false,"descriptions":[],"from":"11","listing":[],"order":false,"removed":["clientdn"],"status":"changed","to":"12","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"12","listing":[],"order":false,"removed":[],"status":"reworded","to":"13","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":false,"descriptions":[],"from":"13","listing":[],"order":false,"removed":["compression"],"status":"changed","to":"14","types":[],"unlisted":[]}],"column_count":8,"content_hash":"4e088486eb00b758c2902c72d8bc3eb569504a3aa0f70f1a17b46235718b9b62","first_version":"9.5","imported_at":"2026-09-30T00:40:55.98569+08:00","kind":"statistics","last_version":"20","name":"pg_stat_ssl","position":107,"present_in":["9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"relation_oid":null,"relkind":"v","shared":false,"source_rev":"english-manuals:66a660e28c700d3408dc5af8839deef8e4dbcac334d86d95cf9517dfe227d805","summary":"The pg_stat_ssl view will contain one row per backend or WAL sender process, showing statistics about SSL usage on this connection.","summary_zh":""}},"Definition":{"Collection":"catalog","Key":"pg_stat_ssl","SourceDatabase":"center","Version":"18","SourceTable":"catalog","SourceKey":"pg_stat_ssl","SourceRevision":"english-manuals:66a660e28c700d3408dc5af8839deef8e4dbcac334d86d95cf9517dfe227d805","Facts":{"columns":[{"array_dimensions":0,"attnum":1,"description":"Process ID of a backend or WAL sender process","description_zh":"","documented":true,"documented_name":"pid","hidden":false,"name":"pid","not_null":false,"references":"","type":"integer","type_modifier":-1,"type_oid":23},{"array_dimensions":0,"attnum":2,"description":"True if SSL is used on this connection","description_zh":"","documented":true,"documented_name":"ssl","hidden":false,"name":"ssl","not_null":false,"references":"","type":"boolean","type_modifier":-1,"type_oid":16},{"array_dimensions":0,"attnum":3,"description":"Version of SSL in use, or NULL if SSL is not in use on this connection","description_zh":"","documented":true,"documented_name":"version","hidden":false,"name":"version","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25},{"array_dimensions":0,"attnum":4,"description":"Name of SSL cipher in use, or NULL if SSL is not in use on this connection","description_zh":"","documented":true,"documented_name":"cipher","hidden":false,"name":"cipher","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25},{"array_dimensions":0,"attnum":5,"description":"Number of bits in the encryption algorithm used, or NULL if SSL is not used on this connection","description_zh":"","documented":true,"documented_name":"bits","hidden":false,"name":"bits","not_null":false,"references":"","type":"integer","type_modifier":-1,"type_oid":23},{"array_dimensions":0,"attnum":6,"description":"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).","description_zh":"","documented":true,"documented_name":"client_dn","hidden":false,"name":"client_dn","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25},{"array_dimensions":0,"attnum":7,"description":"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).","description_zh":"","documented":true,"documented_name":"client_serial","hidden":false,"name":"client_serial","not_null":false,"references":"","type":"numeric","type_modifier":-1,"type_oid":1700},{"array_dimensions":0,"attnum":8,"description":"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.","description_zh":"","documented":true,"documented_name":"issuer_dn","hidden":false,"name":"issuer_dn","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25}],"description":"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.","description_zh":"","doc":{"anchor":"PG-STAT-SSL-VIEW","file":"monitoring-stats.html","lang":"en","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","slug":"18"},"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"},"ManualEvidence":{"doc":{"anchor":"PG-STAT-SSL-VIEW","file":"monitoring-stats.html","lang":"en","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","slug":"18"}},"MeasuredEvidence":{"measured_attributes":true,"metadata_release":"18.6","runtime_columns":["pid","ssl","version","cipher","bits","client_dn","client_serial","issuer_dn"],"runtime_verified":false}},"Text":{"Collection":"catalog","Key":"pg_stat_ssl","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_stat_ssl","Summary":"pg_stat_ssl视图将为每一个后端或者 WAL 发送进程包含一行，用来显示这个连接上的 SSL 使用情况。可以把它与pg_stat_activity或者pg_stat_replication通过pid列连接来得到更多有关该连接的细节。","BodyHTML":"\u003cp\u003epg_stat_ssl视图将为每一个后端或者 WAL 发送进程包含一行，用来显示这个连接上的 SSL 使用情况。可以把它与pg_stat_activity或者pg_stat_replication通过pid列连接来得到更多有关该连接的细节。\u003c/p\u003e","SourceRevision":"2026-09-27@419045e","ContentHash":"52cae0debb15a5d0abb0cb80c577c1db7941690d753ff339a2ed7a60104963b2","Payload":{"columns":[{"description_zh":"后端或 WAL 发送进程的进程 ID","name":"pid","type":"integer","zh_from":"doc"},{"description_zh":"如果在此连接上使用SSL，则为真","name":"ssl","type":"boolean","zh_from":"doc"},{"description_zh":"使用SSL的版本，如果此连接上没有使用SSL则为空值","name":"version","type":"text","zh_from":"doc"},{"description_zh":"正在使用的SSL 密码套件的名称，如果此连接上没有使用SSL则为空值","name":"cipher","type":"text","zh_from":"doc"},{"description_zh":"使用的加密算法中的位数，如果此连接上没有使用SSL则为空值","name":"bits","type":"integer","zh_from":"doc"},{"description_zh":"所用客户端证书中的区别名称（DN，Distinguished Name）字段，如果没有提供客户端证书或在此连接上没有使用SSL，则为空值。如果DN字段长于NAMEDATALEN（标准构建中为64个字符），则该字段将被截断。","name":"client_dn","type":"text","zh_from":"doc"},{"description_zh":"客户端证书的序列号，如果没有提供客户端证书或在此连接上没有使用SSL，则为空值。证书序列号和证书颁发者的组合唯一标识一个证书（除非颁发者错误地重用序列号）。","name":"client_serial","type":"numeric","zh_from":"doc"},{"description_zh":"客户端证书颁发者的区别名称（DN，Distinguished Name），如果没有提供客户端证书或在此连接上没有使用SSL，则为空值。该字段像client_dn一样被截断。","name":"issuer_dn","type":"text","zh_from":"doc"}],"description_zh":"pg_stat_ssl视图将为每一个后端或者 WAL 发送进程包含一行，用来显示这个连接上的 SSL 使用情况。可以把它与pg_stat_activity或者pg_stat_replication通过pid列连接来得到更多有关该连接的细节。","zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
