From 303f4d1012a20102d9fec6f486da0b381184a718 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 5 Sep 2014 01:20:33 -0400 Subject: Assorted message fixes and improvements --- src/backend/commands/dbcommands.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/backend/commands/dbcommands.c') diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index f480be88450..7831e900ba7 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -841,8 +841,10 @@ dropdb(const char *dbname, bool missing_ok) (errcode(ERRCODE_OBJECT_IN_USE), errmsg("database \"%s\" is used by a logical decoding slot", dbname), - errdetail("There are %d slot(s), %d of them active", - nslots, nslots_active))); + errdetail_plural("There is %d slot, %d of them active.", + "There are %d slots, %d of them active.", + nslots, + nslots, nslots_active))); /* * Check for other backends in the target database. (Because we hold the -- cgit v1.2.3