]> granicus.if.org Git - postgresql/commitdiff
worker_spi: Call pgstat_report_stat.
authorRobert Haas <rhaas@postgresql.org>
Wed, 28 Sep 2016 16:38:33 +0000 (12:38 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 28 Sep 2016 16:40:05 +0000 (12:40 -0400)
Without this, statistics changes accumulated by the worker never get
reported to the stats collector, which is bad.

Julien Rouhaud

src/test/modules/worker_spi/worker_spi.c

index 314e371b7f686225b9c542bb4c6bea2e73ce7528..7c9a3eb67e3427f6f291d84cbbfb76d8091128e1 100644 (file)
@@ -292,6 +292,7 @@ worker_spi_main(Datum main_arg)
                SPI_finish();
                PopActiveSnapshot();
                CommitTransactionCommand();
+               pgstat_report_stat(false);
                pgstat_report_activity(STATE_IDLE, NULL);
        }