From 3c97a7ca46c0734446b5f5be8a4c469434b371d7 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 28 Sep 2016 12:38:33 -0400 Subject: [PATCH] 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 --- contrib/worker_spi/worker_spi.c | 1 + 1 file changed, 1 insertion(+) 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); }