mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Fix some inconsistent quoting of wal_level values in messages
When referring to postgresql.conf syntax, then it's without quotes (wal_level=archive); in narrative it's with double quotes. But never single quotes.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.416 2010/06/03 03:19:59 rhaas Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.417 2010/06/03 21:02:11 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -5594,8 +5594,8 @@ CheckRequiredParameterValues(void)
|
||||
if (InArchiveRecovery && ControlFile->wal_level == WAL_LEVEL_MINIMAL)
|
||||
{
|
||||
ereport(WARNING,
|
||||
(errmsg("WAL was generated with wal_level=\"minimal\", data may be missing"),
|
||||
errhint("This happens if you temporarily set wal_level=\"minimal\" without taking a new base backup.")));
|
||||
(errmsg("WAL was generated with wal_level=minimal, data may be missing"),
|
||||
errhint("This happens if you temporarily set wal_level=minimal without taking a new base backup.")));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -7731,9 +7731,9 @@ XLogReportParameters(void)
|
||||
/*
|
||||
* The change in number of backend slots doesn't need to be
|
||||
* WAL-logged if archiving is not enabled, as you can't start
|
||||
* archive recovery with wal_level='minimal' anyway. We don't
|
||||
* archive recovery with wal_level=minimal anyway. We don't
|
||||
* really care about the values in pg_control either if
|
||||
* wal_level='minimal', but seems better to keep them up-to-date
|
||||
* wal_level=minimal, but seems better to keep them up-to-date
|
||||
* to avoid confusion.
|
||||
*/
|
||||
if (wal_level != ControlFile->wal_level || XLogIsNeeded())
|
||||
|
Reference in New Issue
Block a user