]> granicus.if.org Git - postgresql/commitdiff
Don't set application_name in logical replication workers
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 6 Jun 2017 02:16:02 +0000 (22:16 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 6 Jun 2017 02:16:02 +0000 (22:16 -0400)
This was bothering some people because it's not the intended use of
application_name and it makes the default view of pg_stat_activity
bulky.

src/backend/replication/logical/launcher.c
src/backend/replication/logical/worker.c

index 345a415212331ee2ea4f739df76ec23c75b7ca7a..5aaf24bfe4fa0550acf7a080dedd780b7747a30f 100644 (file)
@@ -803,10 +803,6 @@ ApplyLauncherMain(Datum main_arg)
        pqsignal(SIGTERM, logicalrep_launcher_sigterm);
        BackgroundWorkerUnblockSignals();
 
-       /* Make it easy to identify our processes. */
-       SetConfigOption("application_name", MyBgworkerEntry->bgw_name,
-                                       PGC_USERSET, PGC_S_SESSION);
-
        LogicalRepCtx->launcher_pid = MyProcPid;
 
        /*
index a570900a4292387ba3d61a9ad2857385205f6da3..51a64487cd9ac934a6a2306a09667a200aee1d5f 100644 (file)
@@ -1488,10 +1488,6 @@ ApplyWorkerMain(Datum main_arg)
        MyLogicalRepWorker->last_send_time = MyLogicalRepWorker->last_recv_time =
                MyLogicalRepWorker->reply_time = GetCurrentTimestamp();
 
-       /* Make it easy to identify our processes. */
-       SetConfigOption("application_name", MyBgworkerEntry->bgw_name,
-                                       PGC_USERSET, PGC_S_SESSION);
-
        /* Load the libpq-specific functions */
        load_file("libpqwalreceiver", false);