1
0
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:
Michael Paquier
2024-09-04 14:53:18 +09:00
parent b4db64270e
commit a68159ff2b
4 changed files with 73 additions and 42 deletions

View File

@@ -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