Skip to content

Commit 3c97a7c

Browse files
committed
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
1 parent 1f55a05 commit 3c97a7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/worker_spi/worker_spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ worker_spi_main(Datum main_arg)
291291
SPI_finish();
292292
PopActiveSnapshot();
293293
CommitTransactionCommand();
294+
pgstat_report_stat(false);
294295
pgstat_report_activity(STATE_IDLE, NULL);
295296
}
296297

0 commit comments

Comments
 (0)