Skip to content

Commit 95b44bb

Browse files
committed
Unify some error messages
1 parent c61c0cb commit 95b44bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pg_prewarm/autoprewarm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ apw_start_database_worker(void)
867867
ereport(ERROR,
868868
(errcode(ERRCODE_INSUFFICIENT_RESOURCES),
869869
errmsg("registering dynamic bgworker autoprewarm failed"),
870-
errhint("Consider increasing configuration parameter \"max_worker_processes\".")));
870+
errhint("Consider increasing the configuration parameter \"%s\".", "max_worker_processes")));
871871

872872
/*
873873
* Ignore return value; if it fails, postmaster has died, but we have

src/backend/postmaster/bgworker.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ RegisterBackgroundWorker(BackgroundWorker *worker)
928928
"Up to %d background workers can be registered with the current settings.",
929929
max_worker_processes,
930930
max_worker_processes),
931-
errhint("Consider increasing the configuration parameter \"max_worker_processes\".")));
931+
errhint("Consider increasing the configuration parameter \"%s\".", "max_worker_processes")));
932932
return;
933933
}
934934

0 commit comments

Comments
 (0)