Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6ec4c85

Browse files
committed
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
1 parent 3908117 commit 6ec4c85

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/postmaster/autovacuum.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ AutoVacLauncherMain(int argc, char *argv[])
412412
/* Identify myself via ps */
413413
init_ps_display("autovacuum launcher process", "", "", "");
414414

415-
ereport(LOG,
415+
ereport(DEBUG1,
416416
(errmsg("autovacuum launcher started")));
417417

418418
if (PostAuthDelay)
@@ -776,7 +776,7 @@ AutoVacLauncherMain(int argc, char *argv[])
776776

777777
/* Normal exit from the autovac launcher is here */
778778
shutdown:
779-
ereport(LOG,
779+
ereport(DEBUG1,
780780
(errmsg("autovacuum launcher shutting down")));
781781
AutoVacuumShmem->av_launcherpid = 0;
782782

src/backend/replication/logical/launcher.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ ApplyLauncherWakeup(void)
552552
void
553553
ApplyLauncherMain(Datum main_arg)
554554
{
555-
ereport(LOG,
555+
ereport(DEBUG1,
556556
(errmsg("logical replication launcher started")));
557557

558558
/* Establish signal handlers. */
@@ -652,7 +652,7 @@ ApplyLauncherMain(Datum main_arg)
652652
LogicalRepCtx->launcher_pid = 0;
653653

654654
/* ... and if it returns, we're done */
655-
ereport(LOG,
655+
ereport(DEBUG1,
656656
(errmsg("logical replication launcher shutting down")));
657657

658658
proc_exit(0);

0 commit comments

Comments
 (0)