mirror of
https://github.com/postgres/postgres.git
synced 2025-10-28 11:55:03 +03:00
Make GUC_check_errdetail messages full sentences
They were all missing punctuation, one was missing initial capital. Per our message style guidelines. No backpatch, to avoid breaking existing translations.
This commit is contained in:
@@ -3985,7 +3985,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);
|
||||
@@ -4005,7 +4005,7 @@ check_debug_io_direct(char **newval, void **extra, GucSource source)
|
||||
flags |= IO_DIRECT_WAL_INIT;
|
||||
else
|
||||
{
|
||||
GUC_check_errdetail("Invalid option \"%s\"", item);
|
||||
GUC_check_errdetail("Invalid option \"%s\".", item);
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
@@ -4018,7 +4018,7 @@ 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("\"%s\" is not supported for WAL because %s is too small",
|
||||
GUC_check_errdetail("\"%s\" is not supported for WAL because %s is too small.",
|
||||
"debug_io_direct", "XLOG_BLCKSZ");
|
||||
result = false;
|
||||
}
|
||||
@@ -4026,7 +4026,7 @@ check_debug_io_direct(char **newval, void **extra, GucSource source)
|
||||
#if BLCKSZ < PG_IO_ALIGN_SIZE
|
||||
if (result && (flags & IO_DIRECT_DATA))
|
||||
{
|
||||
GUC_check_errdetail("\"%s\" is not supported for WAL because %s is too small",
|
||||
GUC_check_errdetail("\"%s\" is not supported for WAL because %s is too small.",
|
||||
"debug_io_direct", "BLCKSZ");
|
||||
result = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user