aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-08-05 09:36:42 +0900
committerMichael Paquier <michael@paquier.xyz>2022-08-05 09:37:12 +0900
commit47ab1ac822cd928bfe43b2c25be102a6a08902f4 (patch)
treee78d984e1b6fdfb40ce7984f313089605c4734c0 /src/backend/utils/init
parent53823a06be6f40d88d8e3ba45045ecee1a21fc5e (diff)
downloadpostgresql-47ab1ac822cd928bfe43b2c25be102a6a08902f4.tar.gz
postgresql-47ab1ac822cd928bfe43b2c25be102a6a08902f4.zip
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
Diffstat (limited to 'src/backend/utils/init')
-rw-r--r--src/backend/utils/init/postinit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c
index 29f70accb22..0d557a8684b 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -217,7 +217,8 @@ PerformAuthentication(Port *port)
* since there is no way to connect to the database in this case.
*/
ereport(FATAL,
- (errmsg("could not load pg_hba.conf")));
+ /* translator: %s is a configuration file */
+ (errmsg("could not load %s", HbaFileName)));
}
if (!load_ident())