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 00:49:44 +0000 (20:49 -0400)
src/backend/postmaster/postmaster.c

index e3b32cbe08044ea3f0797a54e18414013fc8295d..496192d57c06c9e8eb0bfd5a9822d5c3b4d5dc8e 100644 (file)
@@ -5299,8 +5299,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.",
-                          max_worker_processes),
+                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.",
+                                 max_worker_processes,
+                                 max_worker_processes),
                 errhint("Consider increasing the configuration parameter \"max_worker_processes\".")));
        return;
    }