diff options
author | Neil Conway <neilc@samurai.com> | 2004-05-30 23:40:41 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2004-05-30 23:40:41 +0000 |
commit | 72b6ad6313387110cb36b69a3732cd0936c3eba4 (patch) | |
tree | e43da77aaeb3a9d7f4997ddb2b91ae88001ea462 /src/backend/executor/execUtils.c | |
parent | ec0b1f271639ff0fafd1310de3c47cbb214c6294 (diff) | |
download | postgresql-72b6ad6313387110cb36b69a3732cd0936c3eba4.tar.gz postgresql-72b6ad6313387110cb36b69a3732cd0936c3eba4.zip |
Use the new List API function names throughout the backend, and disable the
list compatibility API by default. While doing this, I decided to keep
the llast() macro around and introduce llast_int() and llast_oid() variants.
Diffstat (limited to 'src/backend/executor/execUtils.c')
-rw-r--r-- | src/backend/executor/execUtils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/executor/execUtils.c b/src/backend/executor/execUtils.c index 811ec513e03..2b4a2c297e1 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.111 2004/05/26 04:41:15 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execUtils.c,v 1.112 2004/05/30 23:40:26 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -249,7 +249,7 @@ FreeExecutorState(EState *estate) while (estate->es_exprcontexts) { /* XXX: seems there ought to be a faster way to implement this - * than repeated lremove(), no? + * than repeated list_delete(), no? */ FreeExprContext((ExprContext *) linitial(estate->es_exprcontexts)); /* FreeExprContext removed the list link for us */ @@ -355,7 +355,7 @@ FreeExprContext(ExprContext *econtext) MemoryContextDelete(econtext->ecxt_per_tuple_memory); /* Unlink self from owning EState */ estate = econtext->ecxt_estate; - estate->es_exprcontexts = lremove(econtext, estate->es_exprcontexts); + estate->es_exprcontexts = list_delete_ptr(estate->es_exprcontexts, econtext); /* And delete the ExprContext node */ pfree(econtext); } @@ -656,7 +656,7 @@ ExecOpenIndices(ResultRelInfo *resultRelInfo) * Get cached list of index OIDs */ indexoidlist = RelationGetIndexList(resultRelation); - len = length(indexoidlist); + len = list_length(indexoidlist); if (len == 0) return; @@ -676,7 +676,7 @@ ExecOpenIndices(ResultRelInfo *resultRelInfo) i = 0; foreach(l, indexoidlist) { - Oid indexOid = lfirsto(l); + Oid indexOid = lfirst_oid(l); Relation indexDesc; IndexInfo *ii; @@ -713,7 +713,7 @@ ExecOpenIndices(ResultRelInfo *resultRelInfo) i++; } - freeList(indexoidlist); + list_free(indexoidlist); } /* ---------------------------------------------------------------- |