aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/replication/walsender.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c
index 1ea2a5cfdf1..c7743da034a 100644
--- a/src/backend/replication/walsender.c
+++ b/src/backend/replication/walsender.c
@@ -1806,6 +1806,9 @@ WalSndLoop(WalSndSendDataCallback send_data)
last_reply_timestamp = GetCurrentTimestamp();
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
* stop streaming.