Pass QueryEnvironment down to EvalPlanQual's EState.

Thomas Munro <tmunro@postgresql.org>

Commit: 72b526779a9320e2dd8ff63237fbaf2e933b5c34
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2019-07-09T22:16:02Z
Releases: 10.10
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

Files

PathChange+/−
src/backend/executor/execMain.c modified +1 −0

Discussion