summaryrefslogtreecommitdiff
path: root/src/backend/storage/file/fd.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-09-04 14:53:18 +0900
committerMichael Paquier <michael@paquier.xyz>2024-09-04 14:53:18 +0900
commita68159ff2b32f290b1136e2940470d50b8491301 (patch)
treec43f5b32ed2b84d19f88be648ef97c087d7b48d5 /src/backend/storage/file/fd.c
parentb4db64270e0c18f72c9c7bf214c809949875a85a (diff)
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
Diffstat (limited to 'src/backend/storage/file/fd.c')
-rw-r--r--src/backend/storage/file/fd.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index 8df0e2f81a4..ec1505802b9 100644
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -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