diff options
| author | Robert Haas | 2016-09-28 16:38:33 +0000 |
|---|---|---|
| committer | Robert Haas | 2016-09-28 16:42:48 +0000 |
| commit | 4929704acb3b4cdde8e890af977cdacaf1ac2ccb (patch) | |
| tree | 6a570c02d93b49433e9bfaeacfbc9879ab62cfe4 /src | |
| parent | e79e6c4da152154544913b38354b98d07b65e411 (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 314e371b7f6..7c9a3eb67e3 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); } |
