Unify some error messages
authorPeter Eisentraut
Thu, 20 Jun 2024 09:10:26 +0000 (11:10 +0200)
committerPeter Eisentraut
Thu, 20 Jun 2024 09:10:26 +0000 (11:10 +0200)
contrib/pg_prewarm/autoprewarm.c
src/backend/postmaster/bgworker.c

index 961d3b8e9ddb5dbb98c0ad9293094cf2ff3eb052..d061731706ac02390c9620e6138fa38b4821d013 100644 (file)
@@ -867,7 +867,7 @@ apw_start_database_worker(void)
        ereport(ERROR,
                (errcode(ERRCODE_INSUFFICIENT_RESOURCES),
                 errmsg("registering dynamic bgworker autoprewarm failed"),
-                errhint("Consider increasing configuration parameter \"max_worker_processes\".")));
+                errhint("Consider increasing the configuration parameter \"%s\".", "max_worker_processes")));
 
    /*
     * Ignore return value; if it fails, postmaster has died, but we have
index fa52b6dfa832534f6e46a16b23a893d107456db1..b37ccb85ad6fc0ad5b1672d374694a2db1845095 100644 (file)
@@ -928,7 +928,7 @@ RegisterBackgroundWorker(BackgroundWorker *worker)
                                  "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\".")));
+                errhint("Consider increasing the configuration parameter \"%s\".", "max_worker_processes")));
        return;
    }