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/execMain.c | |
parent | ec0b1f271639ff0fafd1310de3c47cbb214c6294 (diff) |
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/execMain.c')
-rw-r--r-- | src/backend/executor/execMain.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 5ee954ab4d6..4099ef0a791 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -26,7 +26,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.232 2004/05/26 04:41:14 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.233 2004/05/30 23:40:26 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -524,7 +524,7 @@ InitPlan(QueryDesc *queryDesc, bool explainOnly) ResultRelInfo *resultRelInfo; ListCell *l; - numResultRelations = length(resultRelations); + numResultRelations = list_length(resultRelations); resultRelInfos = (ResultRelInfo *) palloc(numResultRelations * sizeof(ResultRelInfo)); resultRelInfo = resultRelInfos; @@ -590,7 +590,7 @@ InitPlan(QueryDesc *queryDesc, bool explainOnly) foreach(l, parseTree->rowMarks) { - Index rti = lfirsti(l); + Index rti = lfirst_int(l); Oid relid = getrelid(rti, rangeTable); Relation relation; execRowMark *erm; @@ -614,7 +614,7 @@ InitPlan(QueryDesc *queryDesc, bool explainOnly) int nSlots = ExecCountSlotsNode(plan); if (parseTree->resultRelations != NIL) - nSlots += length(parseTree->resultRelations); + nSlots += list_length(parseTree->resultRelations); else nSlots += 1; estate->es_tupleTable = ExecCreateTupleTable(nSlots); @@ -2067,7 +2067,7 @@ EvalPlanQualStart(evalPlanQual *epq, EState *estate, evalPlanQual *priorepq) int rtsize; MemoryContext oldcontext; - rtsize = length(estate->es_range_table); + rtsize = list_length(estate->es_range_table); epq->estate = epqstate = CreateExecutorState(); |