Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6ec4c85

Browse files
committed
Reduce log verbosity of startup/shutdown for launcher subprocesses.
There's no really good reason why the autovacuum launcher and logicalreplication launcher should announce themselves at startup and shutdownby default. Users don't care that those processes exist, and it'sinconsistent that those background processes announce themselves whileothers don't. So, reduce those messages from LOG to DEBUG1 level.I was sorely tempted to reduce the "starting logical replication workerfor subscription ..." message to DEBUG1 as well, but forebore for now.Those processes might possibly be of direct interest to users, at leastuntil logical replication is a lot better shaken out than it is today.Discussion:https://postgr.es/m/19479.1489121003@sss.pgh.pa.us
1 parent3908117 commit6ec4c85

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/backend/postmaster/autovacuum.c

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ ApplyLauncherWakeup(void)
552552
void
553553
ApplyLauncherMain(Datummain_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)

[8]ページ先頭

©2009-2025 Movatter.jp