diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-11-30 14:11:45 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-11-30 14:11:45 +0900 |
commit | 8d9978a7176a2805a8188605de3c16ffc914dc8a (patch) | |
tree | 0d0fa103110c66f3d36b4e5e253196c0b2707d63 /src/backend/tcop/postgres.c | |
parent | 334f512f45ebc946ca1a5aa51808b4447f6384a0 (diff) | |
download | postgresql-8d9978a7176a2805a8188605de3c16ffc914dc8a.tar.gz postgresql-8d9978a7176a2805a8188605de3c16ffc914dc8a.zip |
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
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index e415cf1f34a..7298a187d18 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -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; |