postgres.git / summary / log / commit / refs

commit    fdaa5777062856e125961501dadfbc27409e9369
Author:   Robert Haas <rhaas@postgresql.org>
Date:     Wed Sep 28 16:38:33 2016 +0000

    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


src/test/modules/worker_spi/worker_spi.c | 1 + 1 file changed, 1 insertion(+) 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); } [parent: 8d11c303d010]