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
This commit is contained in:
Robert Haas 2016-09-28 12:38:33 -04:00
parent ce7b35e7e8
commit a4daf83199
1 changed files with 1 additions and 0 deletions

View 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);
}