From 6ec4c8584c45ee784a95e02c40bb643430dee32a Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 10 Mar 2017 15:18:38 -0500 Subject: [PATCH] Reduce log verbosity of startup/shutdown for launcher subprocesses. There's no really good reason why the autovacuum launcher and logical replication launcher should announce themselves at startup and shutdown by default. Users don't care that those processes exist, and it's inconsistent that those background processes announce themselves while others don't. So, reduce those messages from LOG to DEBUG1 level. I was sorely tempted to reduce the "starting logical replication worker for subscription ..." message to DEBUG1 as well, but forebore for now. Those processes might possibly be of direct interest to users, at least until logical replication is a lot better shaken out than it is today. Discussion: https://postgr.es/m/19479.1489121003@sss.pgh.pa.us --- src/backend/postmaster/autovacuum.c | 4 ++-- src/backend/replication/logical/launcher.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c index e8de9a3ced..fa8de1390e 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/src/backend/postmaster/autovacuum.c @@ -412,7 +412,7 @@ AutoVacLauncherMain(int argc, char *argv[]) /* Identify myself via ps */ init_ps_display("autovacuum launcher process", "", "", ""); - ereport(LOG, + ereport(DEBUG1, (errmsg("autovacuum launcher started"))); if (PostAuthDelay) @@ -776,7 +776,7 @@ AutoVacLauncherMain(int argc, char *argv[]) /* Normal exit from the autovac launcher is here */ shutdown: - ereport(LOG, + ereport(DEBUG1, (errmsg("autovacuum launcher shutting down"))); AutoVacuumShmem->av_launcherpid = 0; diff --git a/src/backend/replication/logical/launcher.c b/src/backend/replication/logical/launcher.c index afdadc17d6..20b43626dd 100644 --- a/src/backend/replication/logical/launcher.c +++ b/src/backend/replication/logical/launcher.c @@ -552,7 +552,7 @@ ApplyLauncherWakeup(void) void ApplyLauncherMain(Datum main_arg) { - ereport(LOG, + ereport(DEBUG1, (errmsg("logical replication launcher started"))); /* Establish signal handlers. */ @@ -652,7 +652,7 @@ ApplyLauncherMain(Datum main_arg) LogicalRepCtx->launcher_pid = 0; /* ... and if it returns, we're done */ - ereport(LOG, + ereport(DEBUG1, (errmsg("logical replication launcher shutting down"))); proc_exit(0); -- 2.40.0