git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e79e6c4)
worker_spi: Call pgstat_report_stat.
2016年9月28日 16:38:33 +0000 (12:38 -0400)
2016年9月28日 16:42:48 +0000 (12:42 -0400)
Without this, statistics changes accumulated by the worker never get
reported to the stats collector, which is bad.

Julien Rouhaud


diff --git a/src/test/modules/worker_spi/worker_spi.c b/src/test/modules/worker_spi/worker_spi.c
index 314e371b7f686225b9c542bb4c6bea2e73ce7528..7c9a3eb67e3427f6f291d84cbbfb76d8091128e1 100644 (file)
--- 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);
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /