diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-06-26 11:23:32 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-06-26 11:23:32 -0400 |
commit | 91118f1a59f2038f072552fdbb98e01363e30b59 (patch) | |
tree | 5408920afdab777071797919ea337e8231cfe4f9 /src | |
parent | 1b468a131bd260c9041484f78b8580c7f232d580 (diff) | |
download | postgresql-91118f1a59f2038f072552fdbb98e01363e30b59.tar.gz postgresql-91118f1a59f2038f072552fdbb98e01363e30b59.zip |
Reduce log level for background worker events from LOG to DEBUG1.
Per discussion, LOG is just too chatty for something that will happen
as routinely as this.
Pavel Stehule
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/bgworker.c | 6 | ||||
-rw-r--r-- | src/backend/postmaster/postmaster.c | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/backend/postmaster/bgworker.c b/src/backend/postmaster/bgworker.c index f57224c10fe..68c9505809e 100644 --- a/src/backend/postmaster/bgworker.c +++ b/src/backend/postmaster/bgworker.c @@ -341,7 +341,7 @@ BackgroundWorkerStateChange(void) rw->rw_terminate = false; /* Log it! */ - ereport(LOG, + ereport(DEBUG1, (errmsg("registering background worker \"%s\"", rw->rw_worker.bgw_name))); @@ -370,7 +370,7 @@ ForgetBackgroundWorker(slist_mutable_iter *cur) slot = &BackgroundWorkerData->slot[rw->rw_shmem_slot]; slot->in_use = false; - ereport(LOG, + ereport(DEBUG1, (errmsg("unregistering background worker \"%s\"", rw->rw_worker.bgw_name))); @@ -741,7 +741,7 @@ RegisterBackgroundWorker(BackgroundWorker *worker) static int numworkers = 0; if (!IsUnderPostmaster) - ereport(LOG, + ereport(DEBUG1, (errmsg("registering background worker \"%s\"", worker->bgw_name))); if (!process_shared_preload_libraries_in_progress) diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 1757b4df37e..df8037b498d 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -2961,7 +2961,8 @@ CleanupBackgroundWorker(int pid, rw->rw_child_slot = 0; ReportBackgroundWorkerPID(rw); /* report child death */ - LogChildExit(LOG, namebuf, pid, exitstatus); + LogChildExit(EXIT_STATUS_0(exitstatus) ? DEBUG1 : LOG, + namebuf, pid, exitstatus); return true; } @@ -5417,7 +5418,7 @@ do_start_bgworker(RegisteredBgWorker *rw) { pid_t worker_pid; - ereport(LOG, + ereport(DEBUG1, (errmsg("starting background worker process \"%s\"", rw->rw_worker.bgw_name))); |