mirror of
https://github.com/postgres/postgres.git
synced 2025-11-25 12:03:53 +03:00
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>
This commit is contained in:
@@ -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.
|
||||
* ----------
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user