From: Peter Eisentraut Date: Wed, 10 Feb 2021 09:47:29 +0000 (+0100) Subject: Fix lack of message pluralization X-Git-Tag: REL_14_BETA1~785 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ad5611055c8381d6a9b54fc11838418a1f14bc9;p=thirdparty%2Fpostgresql.git Fix lack of message pluralization --- diff --git a/src/backend/access/transam/xlogfuncs.c b/src/backend/access/transam/xlogfuncs.c index 5e1aab319dd..d8c5bf6dc29 100644 --- a/src/backend/access/transam/xlogfuncs.c +++ b/src/backend/access/transam/xlogfuncs.c @@ -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); }