Use hba_file/ident_file GUCs rather than pg_hba.conf/pg_ident.conf in logs

Michael Paquier <michael@paquier.xyz>

Commit: 47ab1ac822cd928bfe43b2c25be102a6a08902f4
Author: Michael Paquier <michael@paquier.xyz>
Date: 2022-08-05T00:37:12Z
Releases: 16.0
Use hba_file/ident_file GUCs rather than pg_hba.conf/pg_ident.conf in logs

This is particularly useful when log_min_messages is set to FATAL, so as
one can know which file was not getting loaded whether hba_file or
ident_file are set to some non-default values.  If using the default
values of these GUC parameters, the same reports are generated.

This commit changes the load (startup) and reload (SIGHUP) messages.

Author: Julien Rouhaud
Discussion: https://postgr.es/m/20220223045959.35ipdsvbxcstrhya@jrouhaud

Files

PathChange+/−
src/backend/postmaster/postmaster.c modified +4 −3
src/backend/utils/init/postinit.c modified +2 −1

Discussion