Commit 4929704a authored by Robert Haas's avatar Robert Haas

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
parent e79e6c4d
...@@ -292,6 +292,7 @@ worker_spi_main(Datum main_arg) ...@@ -292,6 +292,7 @@ worker_spi_main(Datum main_arg)
SPI_finish(); SPI_finish();
PopActiveSnapshot(); PopActiveSnapshot();
CommitTransactionCommand(); CommitTransactionCommand();
pgstat_report_stat(false);
pgstat_report_activity(STATE_IDLE, NULL); pgstat_report_activity(STATE_IDLE, NULL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment