Check ssl_in_use flag when reporting statistics

Magnus Hagander <magnus@hagander.net>

Commit: 6a5c750f3f72899f4f982f921d5bf5665f55651e
Author: Magnus Hagander <magnus@hagander.net>
Date: 2020-07-07T14:57:27Z
Releases: 14.0
Check ssl_in_use flag when reporting statistics

Previously we checked that the ssl pointer was not null, but this puts a
requirement on there being such a pointer which may not be true in
future multi-ssl-library supporting times. This seems to have been an
oversight in 9029f4b3740, but hasn't really had any effect since we only
have one library.

Author: Daniel Gustafsson

Files

PathChange+/−
src/backend/postmaster/pgstat.c modified +1 −1