Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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:12 +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 fcb34ca1983d9931fe746e460862c5c0393cffa6..7c655f902111b30eb096327834a904d25a477438 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);
    }