diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-09-28 12:38:33 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-09-28 12:40:12 -0400 |
commit | fdaa5777062856e125961501dadfbc27409e9369 (patch) | |
tree | 93669679b45866754d0959de8377f539746e8f6a /src | |
parent | 8d11c303d01087186605d7ea53bfc4b7f53725f4 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/test/modules/worker_spi/worker_spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/modules/worker_spi/worker_spi.c b/src/test/modules/worker_spi/worker_spi.c index fcb34ca1983..7c655f90211 100644 --- a/src/test/modules/worker_spi/worker_spi.c +++ b/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); } |