worker_spi: Call pgstat_report_stat.
authorRobert Haas
Wed, 28 Sep 2016 16:38:33 +0000 (12:38 -0400)
committerRobert Haas
Wed, 28 Sep 2016 16:40:23 +0000 (12:40 -0400)
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

index a7e2d4ce324f701e75d45f06a36671edd568d703..8132b3806915bd83caf3e85ee509878409813d4a 100644 (file)
@@ -291,6 +291,7 @@ worker_spi_main(Datum main_arg)
        SPI_finish();
        PopActiveSnapshot();
        CommitTransactionCommand();
+       pgstat_report_stat(false);
        pgstat_report_activity(STATE_IDLE, NULL);
    }