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:
@ -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,
|
||||
|
Reference in New Issue
Block a user