mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Unify some error messages to ease work of translators
This commit updates a couple of error messages around control file data, GUCs and server settings, unifying to the same message where possible. This reduces the translation burden a bit. Author: Peter Smith Discussion: https://postgr.es/m/CAHut+Pv-kSN8SkxSdoHano_wPubqcg5789ejhCDZAcLFceBR-w@mail.gmail.com
This commit is contained in:
@@ -3971,7 +3971,8 @@ 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("\"%s\" is not supported on this platform.",
|
||||
"debug_io_direct");
|
||||
result = false;
|
||||
}
|
||||
flags = 0;
|
||||
@@ -4018,14 +4019,16 @@ 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("\"%s\" is not supported for WAL because %s is too small",
|
||||
"debug_io_direct", "XLOG_BLCKSZ");
|
||||
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("\"%s\" is not supported for WAL because %s is too small",
|
||||
"debug_io_direct", "BLCKSZ");
|
||||
result = false;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user