Content-Length: 260028 | pFad | http://github.com/postgrespro/postgres/commit/fc3d4a44e9375f79709f470cb3c83d4ca28fb370

F3 Identify walsenders in pg_stat_activity · postgrespro/postgres@fc3d4a4 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/fc3d4a44e9375f79709f470cb3c83d4ca28fb370

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy