diff options
Diffstat (limited to 'src/backend/storage/file/fd.c')
-rw-r--r-- | src/backend/storage/file/fd.c | 9 |
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 |