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

Commit41a21bf

Browse files
committed
Don't set application_name in logical replication workers
This was bothering some people because it's not the intended use ofapplication_name and it makes the default view of pg_stat_activitybulky.
1 parent9907b55 commit41a21bf

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)

[8]ページ先頭

©2009-2025 Movatter.jp