mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Fix interaction of triggers, partitioning, and EXPLAIN ANALYZE.
Add a new EState member es_leaf_result_relations, so that the trigger code knows about ResultRelInfos created by tuple routing. Also make sure ExplainPrintTriggers knows about partition-related ResultRelInfos. Etsuro Fujita, reviewed by Amit Langote Discussion: http://postgr.es/m/57163e18-8e56-da83-337a-22f2c0008051@lab.ntt.co.jp
This commit is contained in:
@ -115,6 +115,11 @@ CreateExecutorState(void)
|
||||
estate->es_num_result_relations = 0;
|
||||
estate->es_result_relation_info = NULL;
|
||||
|
||||
estate->es_root_result_relations = NULL;
|
||||
estate->es_num_root_result_relations = 0;
|
||||
|
||||
estate->es_leaf_result_relations = NIL;
|
||||
|
||||
estate->es_trig_target_relations = NIL;
|
||||
estate->es_trig_tuple_slot = NULL;
|
||||
estate->es_trig_oldtup_slot = NULL;
|
||||
|
Reference in New Issue
Block a user