mirror of
https://github.com/postgres/postgres.git
synced 2025-11-15 03:41:20 +03:00
Message punctuation and pluralization fixes
This commit is contained in:
@@ -940,14 +940,18 @@ GetNewMultiXactId(int nmembers, MultiXactOffset *offset)
|
||||
/* complain even if that DB has disappeared */
|
||||
if (oldest_datname)
|
||||
ereport(WARNING,
|
||||
(errmsg("database \"%s\" must be vacuumed before %u more MultiXactIds are used",
|
||||
(errmsg_plural("database \"%s\" must be vacuumed before %u more MultiXactId is used",
|
||||
"database \"%s\" must be vacuumed before %u more MultiXactIds are used",
|
||||
multiWrapLimit - result,
|
||||
oldest_datname,
|
||||
multiWrapLimit - result),
|
||||
errhint("Execute a database-wide VACUUM in that database.\n"
|
||||
"You might also need to commit or roll back old prepared transactions.")));
|
||||
else
|
||||
ereport(WARNING,
|
||||
(errmsg("database with OID %u must be vacuumed before %u more MultiXactIds are used",
|
||||
(errmsg_plural("database with OID %u must be vacuumed before %u more MultiXactId is used",
|
||||
"database with OID %u must be vacuumed before %u more MultiXactIds are used",
|
||||
multiWrapLimit - result,
|
||||
oldest_datoid,
|
||||
multiWrapLimit - result),
|
||||
errhint("Execute a database-wide VACUUM in that database.\n"
|
||||
@@ -1982,14 +1986,18 @@ SetMultiXactIdLimit(MultiXactId oldest_datminmxid, Oid oldest_datoid)
|
||||
|
||||
if (oldest_datname)
|
||||
ereport(WARNING,
|
||||
(errmsg("database \"%s\" must be vacuumed before %u more MultiXactIds are used",
|
||||
(errmsg_plural("database \"%s\" must be vacuumed before %u more MultiXactId is used",
|
||||
"database \"%s\" must be vacuumed before %u more MultiXactIds are used",
|
||||
multiWrapLimit - curMulti,
|
||||
oldest_datname,
|
||||
multiWrapLimit - curMulti),
|
||||
errhint("To avoid a database shutdown, execute a database-wide VACUUM in that database.\n"
|
||||
"You might also need to commit or roll back old prepared transactions.")));
|
||||
else
|
||||
ereport(WARNING,
|
||||
(errmsg("database with OID %u must be vacuumed before %u more MultiXactIds are used",
|
||||
(errmsg_plural("database with OID %u must be vacuumed before %u more MultiXactId is used",
|
||||
"database with OID %u must be vacuumed before %u more MultiXactIds are used",
|
||||
multiWrapLimit - curMulti,
|
||||
oldest_datoid,
|
||||
multiWrapLimit - curMulti),
|
||||
errhint("To avoid a database shutdown, execute a database-wide VACUUM in that database.\n"
|
||||
|
||||
@@ -6138,7 +6138,7 @@ StartupXLOG(void)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("out of memory"),
|
||||
errdetail("Failed while allocating an XLog reading processor")));
|
||||
errdetail("Failed while allocating an XLog reading processor.")));
|
||||
xlogreader->system_identifier = ControlFile->system_identifier;
|
||||
|
||||
if (read_backup_label(&checkPointLoc, &backupEndRequired,
|
||||
|
||||
Reference in New Issue
Block a user