mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Revise GUC names quoting in messages again
After further review, we want to move in the direction of always quoting GUC names in error messages, rather than the previous (PG16) wildly mixed practice or the intermittent (mid-PG17) idea of doing this depending on how possibly confusing the GUC name is. This commit applies appropriate quotes to (almost?) all mentions of GUC names in error messages. It partially supersedesa243569bf6
and8d9978a717
, which had moved things a bit in the opposite direction but which then were abandoned in a partial state. Author: Peter Smith <smithpb2250@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CAHut%2BPv-kSN8SkxSdoHano_wPubqcg5789ejhCDZAcLFceBR-w%40mail.gmail.com
This commit is contained in:
@ -3947,7 +3947,7 @@ check_debug_io_direct(char **newval, void **extra, GucSource source)
|
||||
#if PG_O_DIRECT == 0
|
||||
if (strcmp(*newval, "") != 0)
|
||||
{
|
||||
GUC_check_errdetail("debug_io_direct is not supported on this platform.");
|
||||
GUC_check_errdetail("\"debug_io_direct\" is not supported on this platform.");
|
||||
result = false;
|
||||
}
|
||||
flags = 0;
|
||||
@ -3961,7 +3961,7 @@ check_debug_io_direct(char **newval, void **extra, GucSource source)
|
||||
|
||||
if (!SplitGUCList(rawstring, ',', &elemlist))
|
||||
{
|
||||
GUC_check_errdetail("Invalid list syntax in parameter %s",
|
||||
GUC_check_errdetail("Invalid list syntax in parameter \"%s\"",
|
||||
"debug_io_direct");
|
||||
pfree(rawstring);
|
||||
list_free(elemlist);
|
||||
@ -3994,14 +3994,14 @@ check_debug_io_direct(char **newval, void **extra, GucSource source)
|
||||
#if XLOG_BLCKSZ < PG_IO_ALIGN_SIZE
|
||||
if (result && (flags & (IO_DIRECT_WAL | IO_DIRECT_WAL_INIT)))
|
||||
{
|
||||
GUC_check_errdetail("debug_io_direct is not supported for WAL because XLOG_BLCKSZ is too small");
|
||||
GUC_check_errdetail("\"debug_io_direct\" is not supported for WAL because XLOG_BLCKSZ is too small");
|
||||
result = false;
|
||||
}
|
||||
#endif
|
||||
#if BLCKSZ < PG_IO_ALIGN_SIZE
|
||||
if (result && (flags & IO_DIRECT_DATA))
|
||||
{
|
||||
GUC_check_errdetail("debug_io_direct is not supported for data because BLCKSZ is too small");
|
||||
GUC_check_errdetail("\"debug_io_direct\" is not supported for data because BLCKSZ is too small");
|
||||
result = false;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user