summaryrefslogtreecommitdiff
path: root/contrib/worker_spi/worker_spi.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-09-28 12:38:33 -0400
committerRobert Haas <rhaas@postgresql.org>2016-09-28 12:40:23 -0400
commit3c97a7ca46c0734446b5f5be8a4c469434b371d7 (patch)
tree439ce70552e1c6b6a42c108f43b6bf1db275c3ca /contrib/worker_spi/worker_spi.c
parent1f55a050d585db075a85d5157586c65409c89a70 (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
Diffstat (limited to 'contrib/worker_spi/worker_spi.c')
-rw-r--r--contrib/worker_spi/worker_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/worker_spi/worker_spi.c b/contrib/worker_spi/worker_spi.c
index a7e2d4ce324..8132b380691 100644
--- a/contrib/worker_spi/worker_spi.c
+++ b/contrib/worker_spi/worker_spi.c
@@ -291,6 +291,7 @@ worker_spi_main(Datum main_arg)
SPI_finish();
PopActiveSnapshot();
CommitTransactionCommand();
+ pgstat_report_stat(false);
pgstat_report_activity(STATE_IDLE, NULL);
}