mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Apply quotes more consistently to GUC names in logs
Quotes are applied to GUCs in a very inconsistent way across the code base, with a mix of double quotes or no quotes used. This commit removes double quotes around all the GUC names that are obviously referred to as parameters with non-English words (use of underscore, mixed case, etc). This is the result of a discussion with Álvaro Herrera, Nathan Bossart, Laurenz Albe, Peter Eisentraut, Tom Lane and Daniel Gustafsson. Author: Peter Smith Discussion: https://postgr.es/m/CAHut+Pv-kSN8SkxSdoHano_wPubqcg5789ejhCDZAcLFceBR-w@mail.gmail.com
This commit is contained in:
@@ -195,7 +195,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))));
|
||||
@@ -218,7 +218,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_max_protocol_version",
|
||||
GetConfigOption("ssl_max_protocol_version",
|
||||
false, false))));
|
||||
@@ -245,7 +245,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;
|
||||
|
||||
Reference in New Issue
Block a user