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

Commitfc3d4a4

Browse files
Identify walsenders in pg_stat_activity
Following8299471 walsender procs are now visible in pg_stat_activity.Set query to ‘walsender’ for walsender procs to allow them to be identified.Discussion:CAB7nPqS8c76KPSufK_HSDeYrbtg+zZ7D0EEkjeM6txSEuCB_jA@mail.gmail.comMichael Paquier, issue raised by Fujii Masao, reviewed by Tom Lane
1 parentc3c0d7b commitfc3d4a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/replication/walsender.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,6 +1806,9 @@ WalSndLoop(WalSndSendDataCallback send_data)
18061806
last_reply_timestamp=GetCurrentTimestamp();
18071807
waiting_for_ping_response= false;
18081808

1809+
/* Report to pgstat that this process is a WAL sender */
1810+
pgstat_report_activity(STATE_RUNNING,"walsender");
1811+
18091812
/*
18101813
* Loop until we reach the end of this timeline or the client requests to
18111814
* stop streaming.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp