Skip to content

Commit 41a21bf

Browse files
committed
Don't set application_name in logical replication workers
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.
1 parent 9907b55 commit 41a21bf

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/backend/replication/logical/launcher.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -803,10 +803,6 @@ ApplyLauncherMain(Datum main_arg)
803803
pqsignal(SIGTERM, logicalrep_launcher_sigterm);
804804
BackgroundWorkerUnblockSignals();
805805

806-
/* Make it easy to identify our processes. */
807-
SetConfigOption("application_name", MyBgworkerEntry->bgw_name,
808-
PGC_USERSET, PGC_S_SESSION);
809-
810806
LogicalRepCtx->launcher_pid = MyProcPid;
811807

812808
/*

src/backend/replication/logical/worker.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,10 +1488,6 @@ ApplyWorkerMain(Datum main_arg)
14881488
MyLogicalRepWorker->last_send_time = MyLogicalRepWorker->last_recv_time =
14891489
MyLogicalRepWorker->reply_time = GetCurrentTimestamp();
14901490

1491-
/* Make it easy to identify our processes. */
1492-
SetConfigOption("application_name", MyBgworkerEntry->bgw_name,
1493-
PGC_USERSET, PGC_S_SESSION);
1494-
14951491
/* Load the libpq-specific functions */
14961492
load_file("libpqwalreceiver", false);
14971493

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy