aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-05-17 23:05:27 -0400
committerPeter Eisentraut <peter_e@gmx.net>2018-05-17 23:05:27 -0400
commit9effb63e0dd12b0704cd8e11106fe08ff5c9d685 (patch)
treed33f16a9cd60bdcfeaa0d90e7a9f3cf6e76a5614 /src/backend/access/transam/xlog.c
parent6b30d1386fa37d8ae45e2d30e22771244afd13c3 (diff)
downloadpostgresql-9effb63e0dd12b0704cd8e11106fe08ff5c9d685.tar.gz
postgresql-9effb63e0dd12b0704cd8e11106fe08ff5c9d685.zip
Message wording and pluralization improvements
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index c633e111281..04bfac74858 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -4652,8 +4652,10 @@ ReadControlFile(void)
if (!IsValidWalSegSize(wal_segment_size))
ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("WAL segment size must be a power of two between 1MB and 1GB, but the control file specifies %d bytes",
- wal_segment_size)));
+ errmsg_plural("WAL segment size must be a power of two between 1 MB and 1 GB, but the control file specifies %d byte",
+ "WAL segment size must be a power of two between 1 MB and 1 GB, but the control file specifies %d bytes",
+ wal_segment_size,
+ wal_segment_size)));
snprintf(wal_segsz_str, sizeof(wal_segsz_str), "%d", wal_segment_size);
SetConfigOption("wal_segment_size", wal_segsz_str, PGC_INTERNAL,