summaryrefslogtreecommitdiff
path: root/src/backend/postmaster/pgstat.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-04-14 14:35:05 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-04-14 14:37:06 -0400
commit139eb9673cb84c76f493af7e68301ae204199746 (patch)
tree6ab3d94e12bb2ab040ecd2b64cc6759efb582f9c /src/backend/postmaster/pgstat.c
parent67c2def11d49de05aacd959ecdffc6736f52efee (diff)
Report statistics in logical replication workers
Author: Stas Kelvich <s.kelvich@postgrespro.ru> Author: Petr Jelinek <petr.jelinek@2ndquadrant.com> Reported-by: Fujii Masao <masao.fujii@gmail.com>
Diffstat (limited to 'src/backend/postmaster/pgstat.c')
-rw-r--r--src/backend/postmaster/pgstat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c
index 3fb57f060c9..235dc264055 100644
--- a/src/backend/postmaster/pgstat.c
+++ b/src/backend/postmaster/pgstat.c
@@ -769,9 +769,10 @@ allow_immediate_pgstat_restart(void)
/* ----------
* pgstat_report_stat() -
*
- * Called from tcop/postgres.c to send the so far collected per-table
- * and function usage statistics to the collector. Note that this is
- * called only when not within a transaction, so it is fair to use
+ * Must be called by processes that performs DML: tcop/postgres.c, logical
+ * receiver processes, SPI worker, etc. to send the so far collected
+ * per-table and function usage statistics to the collector. Note that this
+ * is called only when not within a transaction, so it is fair to use
* transaction stop time as an approximation of current time.
* ----------
*/