Skip to content

Commit fc3d4a4

Browse files
Identify walsenders in pg_stat_activity
Following 8299471 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.com Michael Paquier, issue raised by Fujii Masao, reviewed by Tom Lane
1 parent c3c0d7b commit fc3d4a4

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)
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