git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c1838b6)
Fix compiler warning in non-assert builds, introduced in f862d57057f.
Thu, 3 Feb 2022 18:44:26 +0000 (10:44 -0800)
Thu, 3 Feb 2022 18:44:26 +0000 (10:44 -0800)
Discussion: https://postgr.es/m/20220203183655.ralgkh54sdcgysmn@alap3.anarazel.de
Backpatch: 14-, like f862d57057f


diff --git a/src/backend/executor/nodeForeignscan.c b/src/backend/executor/nodeForeignscan.c
index 2c87b2e238a0da766b103728e791539db393adbf..5b9737c2ab697d25dee5f26f25517c517349f3ad 100644 (file)
--- 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);
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /