diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-09-28 12:38:33 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-09-28 12:40:17 -0400 |
commit | a4daf8319923505b60c02b23bf3cfd1bd0b89d40 (patch) | |
tree | ece3bd59812d0b2da1fdc61c14c3736107688e6b | |
parent | ce7b35e7e828b1f7d0e3835f84e81f3b8646f17c (diff) |
worker_spi: Call pgstat_report_stat.
Without this, statistics changes accumulated by the worker never get
reported to the stats collector, which is bad.
Julien Rouhaud
-rw-r--r-- | contrib/worker_spi/worker_spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/worker_spi/worker_spi.c b/contrib/worker_spi/worker_spi.c index 829de0e6a7f..93755006c7e 100644 --- a/contrib/worker_spi/worker_spi.c +++ b/contrib/worker_spi/worker_spi.c @@ -294,6 +294,7 @@ worker_spi_main(Datum main_arg) SPI_finish(); PopActiveSnapshot(); CommitTransactionCommand(); + pgstat_report_stat(false); pgstat_report_activity(STATE_IDLE, NULL); } |