diff options
author | Andres Freund | 2022-02-03 18:44:26 +0000 |
---|---|---|
committer | Andres Freund | 2022-02-03 18:44:26 +0000 |
commit | 7c1aead6cbe7dcc6c216715fed7a1fb60684c5dc (patch) | |
tree | 6ef634090575ff677ce191bddacad72767d45f65 | |
parent | c1838b6f7a736aabca3482732490fd3ff3532fd3 (diff) |
Fix compiler warning in non-assert builds, introduced in f862d57057f.
Discussion: https://postgr.es/m/[email protected]
Backpatch: 14-, like f862d57057f
-rw-r--r-- | src/backend/executor/nodeForeignscan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/executor/nodeForeignscan.c b/src/backend/executor/nodeForeignscan.c index 2c87b2e238a..5b9737c2ab6 100644 --- a/src/backend/executor/nodeForeignscan.c +++ b/src/backend/executor/nodeForeignscan.c @@ -44,7 +44,6 @@ ForeignNext(ForeignScanState *node) TupleTableSlot *slot; ForeignScan *plan = (ForeignScan *) node->ss.ps.plan; ExprContext *econtext = node->ss.ps.ps_ExprContext; - EState *estate = node->ss.ps.state; MemoryContext oldcontext; /* Call the Iterate function in short-lived context */ @@ -55,7 +54,7 @@ ForeignNext(ForeignScanState *node) * direct modifications cannot be re-evaluated, so shouldn't get here * during EvalPlanQual processing */ - Assert(estate->es_epq_active == NULL); + Assert(node->ss.ps.state->es_epq_active == NULL); slot = node->fdwroutine->IterateDirectModify(node); } |