mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Revise GUC names quoting in messages again
After further review, we want to move in the direction of always quoting GUC names in error messages, rather than the previous (PG16) wildly mixed practice or the intermittent (mid-PG17) idea of doing this depending on how possibly confusing the GUC name is. This commit applies appropriate quotes to (almost?) all mentions of GUC names in error messages. It partially supersedesa243569bf6and8d9978a717, which had moved things a bit in the opposite direction but which then were abandoned in a partial state. Author: Peter Smith <smithpb2250@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CAHut%2BPv-kSN8SkxSdoHano_wPubqcg5789ejhCDZAcLFceBR-w%40mail.gmail.com
This commit is contained in:
@@ -201,7 +201,7 @@ be_tls_init(bool isServerStart)
|
||||
{
|
||||
ereport(isServerStart ? FATAL : LOG,
|
||||
/*- translator: first %s is a GUC option name, second %s is its value */
|
||||
(errmsg("%s setting \"%s\" not supported by this build",
|
||||
(errmsg("\"%s\" setting \"%s\" not supported by this build",
|
||||
"ssl_min_protocol_version",
|
||||
GetConfigOption("ssl_min_protocol_version",
|
||||
false, false))));
|
||||
@@ -251,7 +251,7 @@ be_tls_init(bool isServerStart)
|
||||
{
|
||||
ereport(isServerStart ? FATAL : LOG,
|
||||
(errmsg("could not set SSL protocol version range"),
|
||||
errdetail("%s cannot be higher than %s",
|
||||
errdetail("\"%s\" cannot be higher than \"%s\"",
|
||||
"ssl_min_protocol_version",
|
||||
"ssl_max_protocol_version")));
|
||||
goto error;
|
||||
|
||||
@@ -1378,7 +1378,7 @@ parse_hba_line(TokenizedAuthLine *tok_line, int elevel)
|
||||
ereport(elevel,
|
||||
(errcode(ERRCODE_CONFIG_FILE_ERROR),
|
||||
errmsg("hostssl record cannot match because SSL is disabled"),
|
||||
errhint("Set ssl = on in postgresql.conf."),
|
||||
errhint("Set \"ssl = on\" in postgresql.conf."),
|
||||
errcontext("line %d of configuration file \"%s\"",
|
||||
line_num, file_name)));
|
||||
*err_msg = "hostssl record cannot match because SSL is disabled";
|
||||
|
||||
@@ -731,7 +731,7 @@ Setup_AF_UNIX(const char *sock_path)
|
||||
if (Unix_socket_group[0] != '\0')
|
||||
{
|
||||
#ifdef WIN32
|
||||
elog(WARNING, "configuration item unix_socket_group is not supported on this platform");
|
||||
elog(WARNING, "configuration item \"unix_socket_group\" is not supported on this platform");
|
||||
#else
|
||||
char *endptr;
|
||||
unsigned long val;
|
||||
|
||||
Reference in New Issue
Block a user