projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce7b35e
)
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:17 +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 829de0e6a7f3db852ac6c45488803847f4d7d99d..93755006c7ec7bdd4aa7bab21ec5654c402b6a68 100644
(file)
--- a/
contrib/worker_spi/worker_spi.c
+++ b/
contrib/worker_spi/worker_spi.c
@@
-294,6
+294,7
@@
worker_spi_main(Datum main_arg)
SPI_finish();
PopActiveSnapshot();
CommitTransactionCommand();
+ pgstat_report_stat(false);
pgstat_report_activity(STATE_IDLE, NULL);
}