mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Add more columns to pg_stat_ssl
Add columns client_serial and issuer_dn to pg_stat_ssl. These allow uniquely identifying the client certificate. Rename the existing column clientdn to client_dn, to make the naming more consistent and easier to read. Discussion: https://www.postgresql.org/message-id/flat/398754d8-6bb5-c5cf-e7b8-22e5f0983caf@2ndquadrant.com/
This commit is contained in:
@@ -2201,15 +2201,31 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
|
||||
or NULL if SSL is not in use on this connection</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><structfield>clientdn</structfield></entry>
|
||||
<entry><structfield>client_dn</structfield></entry>
|
||||
<entry><type>text</type></entry>
|
||||
<entry>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 <symbol>NAMEDATALEN</symbol> (64 characters
|
||||
in a standard build)
|
||||
in a standard build).
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><structfield>client_serial</structfield></entry>
|
||||
<entry><type>numeric</type></entry>
|
||||
<entry>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).</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><structfield>issuer_dn</structfield></entry>
|
||||
<entry><type>text</type></entry>
|
||||
<entry>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 <structfield>client_dn</structfield>.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user