Skip to content

Commit abbb2e1

Browse files
committed
Pass QueryEnvironment down to EvalPlanQual's EState.
Otherwise the executor can't see trigger transition tables during EPQ evaluation. Fixes bug #15900 and almost certainly also #15720. Back-patch to 10, where trigger transition tables landed. Author: Alex Aktsipetrov Reviewed-by: Thomas Munro, Tom Lane Discussion: https://postgr.es/m/15900-bc482754fe8d7415%40postgresql.org Discussion: https://postgr.es/m/15720-38c2b29e5d720187%40postgresql.org
1 parent ae0a294 commit abbb2e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/executor/execMain.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,6 +2793,7 @@ EvalPlanQualStart(EPQState *epqstate, EState *parentestate, Plan *planTree)
27932793
estate->es_range_table_array = parentestate->es_range_table_array;
27942794
estate->es_range_table_size = parentestate->es_range_table_size;
27952795
estate->es_relations = parentestate->es_relations;
2796+
estate->es_queryEnv = parentestate->es_queryEnv;
27962797
estate->es_rowmarks = parentestate->es_rowmarks;
27972798
estate->es_plannedstmt = parentestate->es_plannedstmt;
27982799
estate->es_junkFilter = parentestate->es_junkFilter;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy