diff options
Diffstat (limited to 'src/backend/executor/execUtils.c')
-rw-r--r-- | src/backend/executor/execUtils.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/backend/executor/execUtils.c b/src/backend/executor/execUtils.c index 9702b1cf0aa..811ec513e03 100644 --- a/src/backend/executor/execUtils.c +++ b/src/backend/executor/execUtils.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/execUtils.c,v 1.110 2004/03/17 20:48:42 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execUtils.c,v 1.111 2004/05/26 04:41:15 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -248,7 +248,10 @@ FreeExecutorState(EState *estate) */ while (estate->es_exprcontexts) { - FreeExprContext((ExprContext *) lfirst(estate->es_exprcontexts)); + /* XXX: seems there ought to be a faster way to implement this + * than repeated lremove(), no? + */ + FreeExprContext((ExprContext *) linitial(estate->es_exprcontexts)); /* FreeExprContext removed the list link for us */ } @@ -636,8 +639,8 @@ void ExecOpenIndices(ResultRelInfo *resultRelInfo) { Relation resultRelation = resultRelInfo->ri_RelationDesc; - List *indexoidlist, - *indexoidscan; + List *indexoidlist; + ListCell *l; int len, i; RelationPtr relationDescs; @@ -671,9 +674,9 @@ ExecOpenIndices(ResultRelInfo *resultRelInfo) * For each index, open the index relation and save pg_index info. */ i = 0; - foreach(indexoidscan, indexoidlist) + foreach(l, indexoidlist) { - Oid indexOid = lfirsto(indexoidscan); + Oid indexOid = lfirsto(l); Relation indexDesc; IndexInfo *ii; |