From 9029f4b37406b21abb7516a2fd5643e0961810f8 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sun, 12 Apr 2015 19:07:46 +0200 Subject: Add system view pg_stat_ssl This view shows information about all connections, such as if the connection is using SSL, which cipher is used, and which client certificate (if any) is used. Reviews by Alex Shulgin, Heikki Linnakangas, Andres Freund & Michael Paquier --- doc/src/sgml/monitoring.sgml | 77 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 71d06ce513b..e64b7ef0c5f 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -300,6 +300,14 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser + + pg_stat_sslpg_stat_ssl + One row per connection (regular and replication), showing information about + SSL used on this connection. + See for details. + + + @@ -825,6 +833,75 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser listed; no information is available about downstream standby servers. + + <structname>pg_stat_ssl</structname> View + + + + Column + Type + Description + + + + + + pid + integer + Process ID of a backend or WAL sender process + + + ssl + boolean + True if SSL is used on this connection + + + version + text + Version of SSL in use, or NULL if SSL is not in use + on this connection + + + cipher + text + Name of SSL cipher in use, or NULL if SSL is not in use + on this connection + + + bits + integer + Number of bits in the encryption algorithm used, or NULL + if SSL is not used on this connection + + + compression + boolean + True if SSL compression is in use, false if not, + or NULL if SSL is not in use on this connection + + + clientdn + text + 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) + + + + +
+ + + 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. + + <structname>pg_stat_archiver</structname> View -- cgit v1.2.3