Fix pg_stat_ssl.clientdn

Peter Eisentraut <peter@eisentraut.org>

Commit: e77cfa54d700557ea700d47454c9e570f20f1841
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-01-29T12:06:33Z
Releases: 12.0
Fix pg_stat_ssl.clientdn

Return null if there is no client certificate.  This is how it has
always been documented, but in reality it returned an empty string.

Reviewed-by: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Discussion: https://www.postgresql.org/message-id/flat/398754d8-6bb5-c5cf-e7b8-22e5f0983caf@2ndquadrant.com/

Files

PathChange+/−
src/backend/utils/adt/pgstatfuncs.c modified +4 −1
src/test/ssl/t/001_ssltests.pl modified +1 −1

Discussion

Cited messages not in the archive: 398754d8-6bb5-c5cf-e7b8-22e5f0983caf@2ndquadrant.com/