mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Avoid listing the same ResultRelInfo in more than one EState list.
Doing so causes EXPLAIN ANALYZE to show trigger statistics multiple
times.  Commit 2f17844104 seems to
be to blame for this.
Amit Langote, revieed by Amit Khandekar, Etsuro Fujita, and me.
			
			
This commit is contained in:
		@@ -466,8 +466,11 @@ typedef struct EState
 | 
			
		||||
	ResultRelInfo *es_root_result_relations;	/* array of ResultRelInfos */
 | 
			
		||||
	int			es_num_root_result_relations;	/* length of the array */
 | 
			
		||||
 | 
			
		||||
	/* Info about leaf partitions of partitioned table(s) for insert queries: */
 | 
			
		||||
	List	   *es_leaf_result_relations;	/* List of ResultRelInfos */
 | 
			
		||||
	/*
 | 
			
		||||
	 * The following list contains ResultRelInfos created by the tuple
 | 
			
		||||
	 * routing code for partitions that don't already have one.
 | 
			
		||||
	 */
 | 
			
		||||
	List	   *es_tuple_routing_result_relations;
 | 
			
		||||
 | 
			
		||||
	/* Stuff used for firing triggers: */
 | 
			
		||||
	List	   *es_trig_target_relations;	/* trigger-only ResultRelInfos */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user