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:17 +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 829de0e6a7f3db852ac6c45488803847f4d7d99d..93755006c7ec7bdd4aa7bab21ec5654c402b6a68 100644 (file)
@@ -294,6 +294,7 @@ worker_spi_main(Datum main_arg)
        SPI_finish();
        PopActiveSnapshot();
        CommitTransactionCommand();
+       pgstat_report_stat(false);
        pgstat_report_activity(STATE_IDLE, NULL);
    }