Commit fc3d4a44 authored by Simon Riggs's avatar Simon Riggs

Identify walsenders in pg_stat_activity

Following 8299471c 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
parent c3c0d7bd
...@@ -1806,6 +1806,9 @@ WalSndLoop(WalSndSendDataCallback send_data) ...@@ -1806,6 +1806,9 @@ WalSndLoop(WalSndSendDataCallback send_data)
last_reply_timestamp = GetCurrentTimestamp(); last_reply_timestamp = GetCurrentTimestamp();
waiting_for_ping_response = false; waiting_for_ping_response = false;
/* Report to pgstat that this process is a WAL sender */
pgstat_report_activity(STATE_RUNNING, "walsender");
/* /*
* Loop until we reach the end of this timeline or the client requests to * Loop until we reach the end of this timeline or the client requests to
* stop streaming. * stop streaming.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment