mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +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:
@@ -2658,7 +2658,7 @@ lazy_check_wraparound_failsafe(LVRelState *vacrel)
|
||||
vacrel->dbname, vacrel->relnamespace, vacrel->relname,
|
||||
vacrel->num_index_scans),
|
||||
errdetail("The table's relfrozenxid or relminmxid is too far in the past."),
|
||||
errhint("Consider increasing configuration parameter \"maintenance_work_mem\" or \"autovacuum_work_mem\".\n"
|
||||
errhint("Consider increasing configuration parameter maintenance_work_mem or autovacuum_work_mem.\n"
|
||||
"You might also need to consider other ways for VACUUM to keep up with the allocation of transaction IDs.")));
|
||||
|
||||
/* Stop applying cost limits from this point on */
|
||||
|
||||
@@ -385,9 +385,9 @@ error_commit_ts_disabled(void)
|
||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||
errmsg("could not get commit timestamp data"),
|
||||
RecoveryInProgress() ?
|
||||
errhint("Make sure the configuration parameter \"%s\" is set on the primary server.",
|
||||
errhint("Make sure the configuration parameter %s is set on the primary server.",
|
||||
"track_commit_timestamp") :
|
||||
errhint("Make sure the configuration parameter \"%s\" is set.",
|
||||
errhint("Make sure the configuration parameter %s is set.",
|
||||
"track_commit_timestamp")));
|
||||
}
|
||||
|
||||
|
||||
@@ -4258,11 +4258,11 @@ ReadControlFile(void)
|
||||
/* check and update variables dependent on wal_segment_size */
|
||||
if (ConvertToXSegs(min_wal_size_mb, wal_segment_size) < 2)
|
||||
ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("\"min_wal_size\" must be at least twice \"wal_segment_size\"")));
|
||||
errmsg("min_wal_size must be at least twice wal_segment_size")));
|
||||
|
||||
if (ConvertToXSegs(max_wal_size_mb, wal_segment_size) < 2)
|
||||
ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("\"max_wal_size\" must be at least twice \"wal_segment_size\"")));
|
||||
errmsg("max_wal_size must be at least twice wal_segment_size")));
|
||||
|
||||
UsableBytesInSegment =
|
||||
(wal_segment_size / XLOG_BLCKSZ * UsableBytesInPage) -
|
||||
|
||||
Reference in New Issue
Block a user