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
pull/17/head
Robert Haas 9 years ago
parent e79e6c4da1
commit 4929704acb
  1. 1
      src/test/modules/worker_spi/worker_spi.c

@ -292,6 +292,7 @@ worker_spi_main(Datum main_arg)
SPI_finish();
PopActiveSnapshot();
CommitTransactionCommand();
pgstat_report_stat(false);
pgstat_report_activity(STATE_IDLE, NULL);
}

Loading…
Cancel
Save