aboutsummaryrefslogtreecommitdiff
path: root/src
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:05 -0400
commitf0476e226f1bc3aaaa4185ace3a09bc586b42cde (patch)
tree490dd08ad5f39bf4887ce03d52dfb467301ab18f /src
parent32841fa325de298e0bad771c588354fd59866e42 (diff)
downloadpostgresql-f0476e226f1bc3aaaa4185ace3a09bc586b42cde.tar.gz
postgresql-f0476e226f1bc3aaaa4185ace3a09bc586b42cde.zip
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 'src')
-rw-r--r--src/test/modules/worker_spi/worker_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/modules/worker_spi/worker_spi.c b/src/test/modules/worker_spi/worker_spi.c
index 314e371b7f6..7c9a3eb67e3 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);
}