]> granicus.if.org Git - postgresql/commitdiff
Fix lack of message pluralization
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 10 Jul 2013 00:49:44 +0000 (20:49 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 10 Jul 2013 01:04:55 +0000 (21:04 -0400)
src/backend/postmaster/postmaster.c

index 87e60621396714a937052948c592d600a84e95cf..ec2677380bf6d26437e17515f2afb8dd4ab75594 100644 (file)
@@ -5227,8 +5227,10 @@ RegisterBackgroundWorker(BackgroundWorker *worker)
                ereport(LOG,
                                (errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
                                 errmsg("too many background workers"),
-                                errdetail("Up to %d background workers can be registered with the current settings.",
-                                                  maxworkers)));
+                                errdetail_plural("Up to %d background worker can be registered with the current settings.",
+                                                                 "Up to %d background workers can be registered with the current settings.",
+                                                                 maxworkers,
+                                                                 maxworkers)));
                return;
        }