Fix lack of message pluralization

This commit is contained in:
Peter Eisentraut 2021-02-10 10:47:29 +01:00
parent 4f47260050
commit 4ad5611055
1 changed files with 4 additions and 1 deletions

View File

@ -781,6 +781,9 @@ pg_promote(PG_FUNCTION_ARGS)
}
ereport(WARNING,
(errmsg("server did not promote within %d seconds", wait_seconds)));
(errmsg_plural("server did not promote within %d second",
"server did not promote within %d seconds",
wait_seconds,
wait_seconds)));
PG_RETURN_BOOL(false);
}