{
ereport(isServerStart ? FATAL : LOG,
errcode(ERRCODE_CONFIG_FILE_ERROR),
- errmsg("could not load \"%s\": %s", "pg_hosts.conf",
+ errmsg("could not load \"%s\": %s", HostsFileName,
err_msg ? err_msg : "unknown error"));
goto error;
}
errmsg("no SSL configurations loaded"),
/*- translator: The two %s contain filenames */
errhint("If ssl_sni is enabled then add configuration to \"%s\", else \"%s\"",
- "pg_hosts.conf", "postgresql.conf"));
+ HostsFileName, "postgresql.conf"));
goto error;
}
"Set \"%s\" to \"off\" to make use of the hook "
"that is currently installed, or remove the hook "
"and use per-host passphrase commands in \"%s\".",
- "ssl_sni", "pg_hosts.conf"));
+ "ssl_sni", HostsFileName));
init_warned = true;
}