projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f55a05
)
worker_spi: Call pgstat_report_stat.
author
Robert Haas
Wed, 28 Sep 2016 16:38:33 +0000
(12:38 -0400)
committer
Robert Haas
Wed, 28 Sep 2016 16:40:23 +0000
(12:40 -0400)
Without this, statistics changes accumulated by the worker never get
reported to the stats collector, which is bad.
Julien Rouhaud
contrib/worker_spi/worker_spi.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/worker_spi/worker_spi.c
b/contrib/worker_spi/worker_spi.c
index a7e2d4ce324f701e75d45f06a36671edd568d703..8132b3806915bd83caf3e85ee509878409813d4a 100644
(file)
--- a/
contrib/worker_spi/worker_spi.c
+++ b/
contrib/worker_spi/worker_spi.c
@@
-291,6
+291,7
@@
worker_spi_main(Datum main_arg)
SPI_finish();
PopActiveSnapshot();
CommitTransactionCommand();
+ pgstat_report_stat(false);
pgstat_report_activity(STATE_IDLE, NULL);
}