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
This commit is contained in:
Tom Lane 2017-03-10 15:18:38 -05:00
parent 390811750d
commit 6ec4c8584c
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);