Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f0476e2

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 32841fa commit f0476e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/modules/worker_spi/worker_spi.c

+1
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ worker_spi_main(Datum main_arg)
292292
SPI_finish();
293293
PopActiveSnapshot();
294294
CommitTransactionCommand();
295+
pgstat_report_stat(false);
295296
pgstat_report_activity(STATE_IDLE, NULL);
296297
}
297298

0 commit comments

Comments
 (0)