Commit 6ec4c858 authored by Tom Lane's avatar Tom Lane

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
parent 39081175
...@@ -412,7 +412,7 @@ AutoVacLauncherMain(int argc, char *argv[]) ...@@ -412,7 +412,7 @@ AutoVacLauncherMain(int argc, char *argv[])
/* Identify myself via ps */ /* Identify myself via ps */
init_ps_display("autovacuum launcher process", "", "", ""); init_ps_display("autovacuum launcher process", "", "", "");
ereport(LOG, ereport(DEBUG1,
(errmsg("autovacuum launcher started"))); (errmsg("autovacuum launcher started")));
if (PostAuthDelay) if (PostAuthDelay)
...@@ -776,7 +776,7 @@ AutoVacLauncherMain(int argc, char *argv[]) ...@@ -776,7 +776,7 @@ AutoVacLauncherMain(int argc, char *argv[])
/* Normal exit from the autovac launcher is here */ /* Normal exit from the autovac launcher is here */
shutdown: shutdown:
ereport(LOG, ereport(DEBUG1,
(errmsg("autovacuum launcher shutting down"))); (errmsg("autovacuum launcher shutting down")));
AutoVacuumShmem->av_launcherpid = 0; AutoVacuumShmem->av_launcherpid = 0;
......
...@@ -552,7 +552,7 @@ ApplyLauncherWakeup(void) ...@@ -552,7 +552,7 @@ ApplyLauncherWakeup(void)
void void
ApplyLauncherMain(Datum main_arg) ApplyLauncherMain(Datum main_arg)
{ {
ereport(LOG, ereport(DEBUG1,
(errmsg("logical replication launcher started"))); (errmsg("logical replication launcher started")));
/* Establish signal handlers. */ /* Establish signal handlers. */
...@@ -652,7 +652,7 @@ ApplyLauncherMain(Datum main_arg) ...@@ -652,7 +652,7 @@ ApplyLauncherMain(Datum main_arg)
LogicalRepCtx->launcher_pid = 0; LogicalRepCtx->launcher_pid = 0;
/* ... and if it returns, we're done */ /* ... and if it returns, we're done */
ereport(LOG, ereport(DEBUG1,
(errmsg("logical replication launcher shutting down"))); (errmsg("logical replication launcher shutting down")));
proc_exit(0); proc_exit(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment