mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +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:
@ -3524,7 +3524,7 @@ check_stack_depth(void)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_STATEMENT_TOO_COMPLEX),
|
||||
errmsg("stack depth limit exceeded"),
|
||||
errhint("Increase the configuration parameter \"max_stack_depth\" (currently %dkB), "
|
||||
errhint("Increase the configuration parameter max_stack_depth (currently %dkB), "
|
||||
"after ensuring the platform's stack depth limit is adequate.",
|
||||
max_stack_depth)));
|
||||
}
|
||||
@ -3571,7 +3571,7 @@ check_max_stack_depth(int *newval, void **extra, GucSource source)
|
||||
|
||||
if (stack_rlimit > 0 && newval_bytes > stack_rlimit - STACK_DEPTH_SLOP)
|
||||
{
|
||||
GUC_check_errdetail("\"max_stack_depth\" must not exceed %ldkB.",
|
||||
GUC_check_errdetail("max_stack_depth must not exceed %ldkB.",
|
||||
(stack_rlimit - STACK_DEPTH_SLOP) / 1024L);
|
||||
GUC_check_errhint("Increase the platform's stack depth limit via \"ulimit -s\" or local equivalent.");
|
||||
return false;
|
||||
@ -3632,9 +3632,9 @@ check_log_stats(bool *newval, void **extra, GucSource source)
|
||||
if (*newval &&
|
||||
(log_parser_stats || log_planner_stats || log_executor_stats))
|
||||
{
|
||||
GUC_check_errdetail("Cannot enable \"log_statement_stats\" when "
|
||||
"\"log_parser_stats\", \"log_planner_stats\", "
|
||||
"or \"log_executor_stats\" is true.");
|
||||
GUC_check_errdetail("Cannot enable log_statement_stats when "
|
||||
"log_parser_stats, log_planner_stats, "
|
||||
"or log_executor_stats is true.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user