aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-03-10 15:18:38 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2017-03-10 15:18:38 -0500
commit6ec4c8584c45ee784a95e02c40bb643430dee32a (patch)
tree2afa879451eacb596bd50672a0651d7085bdeadd /src
parent390811750d1647ed81a462da3af7f1fd66166e95 (diff)
downloadpostgresql-6ec4c8584c45ee784a95e02c40bb643430dee32a.tar.gz
postgresql-6ec4c8584c45ee784a95e02c40bb643430dee32a.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/autovacuum.c4
-rw-r--r--src/backend/replication/logical/launcher.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c
index e8de9a3ced4..fa8de1390e5 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 afdadc17d6d..20b43626ddd 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);