From: Robert Haas Date: Wed, 28 Sep 2016 16:38:33 +0000 (-0400) Subject: worker_spi: Call pgstat_report_stat. X-Git-Tag: REL9_6_1~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0476e226f1bc3aaaa4185ace3a09bc586b42cde;p=postgresql 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 --- diff --git a/src/test/modules/worker_spi/worker_spi.c b/src/test/modules/worker_spi/worker_spi.c index 314e371b7f..7c9a3eb67e 100644 --- a/src/test/modules/worker_spi/worker_spi.c +++ b/src/test/modules/worker_spi/worker_spi.c @@ -292,6 +292,7 @@ worker_spi_main(Datum main_arg) SPI_finish(); PopActiveSnapshot(); CommitTransactionCommand(); + pgstat_report_stat(false); pgstat_report_activity(STATE_IDLE, NULL); }