mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	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
This commit is contained in:
		@@ -291,6 +291,7 @@ worker_spi_main(Datum main_arg)
 | 
				
			|||||||
		SPI_finish();
 | 
							SPI_finish();
 | 
				
			||||||
		PopActiveSnapshot();
 | 
							PopActiveSnapshot();
 | 
				
			||||||
		CommitTransactionCommand();
 | 
							CommitTransactionCommand();
 | 
				
			||||||
 | 
							pgstat_report_stat(false);
 | 
				
			||||||
		pgstat_report_activity(STATE_IDLE, NULL);
 | 
							pgstat_report_activity(STATE_IDLE, NULL);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user