1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Message wording and pluralization improvements

This commit is contained in:
Peter Eisentraut
2018-05-17 23:05:27 -04:00
parent 6b30d1386f
commit 9effb63e0d
10 changed files with 39 additions and 23 deletions

View File

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