diff options
Diffstat (limited to 'src/backend/optimizer/path')
-rw-r--r-- | src/backend/optimizer/path/_deadcode/xfunc.c | 4 | ||||
-rw-r--r-- | src/backend/optimizer/path/pathkeys.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/optimizer/path/_deadcode/xfunc.c b/src/backend/optimizer/path/_deadcode/xfunc.c index fecd4444ae..2de9d39b9c 100644 --- a/src/backend/optimizer/path/_deadcode/xfunc.c +++ b/src/backend/optimizer/path/_deadcode/xfunc.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/xfunc.c,v 1.13 2000/01/26 05:56:36 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/xfunc.c,v 1.14 2001/01/17 17:26:45 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -300,7 +300,7 @@ xfunc_pullup(Query *queryInfo, get_clause(cinfo), LispNil); xfunc_copyrel(get_parent(newkid), &newrel); set_parent(newkid, newrel); - set_pathlist(newrel, lcons(newkid, NIL)); + set_pathlist(newrel, makeList1(newkid)); set_unorderedpath(newrel, (PathPtr) newkid); set_cheapestpath(newrel, (PathPtr) newkid); set_size(newrel, diff --git a/src/backend/optimizer/path/pathkeys.c b/src/backend/optimizer/path/pathkeys.c index 9c4e537d55..2b1bf60d07 100644 --- a/src/backend/optimizer/path/pathkeys.c +++ b/src/backend/optimizer/path/pathkeys.c @@ -11,7 +11,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/pathkeys.c,v 1.28 2000/12/14 22:30:43 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/pathkeys.c,v 1.29 2001/01/17 17:26:45 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -119,7 +119,7 @@ add_equijoined_keys(Query *root, RestrictInfo *restrictinfo) /* Build the new set only when we know we must */ if (newset == NIL) - newset = lcons(item1, lcons(item2, NIL)); + newset = makeList2(item1, item2); /* Found a set to merge into our new set */ newset = set_union(newset, curset); @@ -135,7 +135,7 @@ add_equijoined_keys(Query *root, RestrictInfo *restrictinfo) /* Build the new set only when we know we must */ if (newset == NIL) - newset = lcons(item1, lcons(item2, NIL)); + newset = makeList2(item1, item2); root->equi_key_list = lcons(newset, root->equi_key_list); } @@ -534,7 +534,7 @@ build_index_pathkeys(Query *root, /* Make a one-sublist pathkeys list for the function expression */ item = makePathKeyItem((Node *) make_funcclause(funcnode, funcargs), sortop); - retval = lcons(make_canonical_pathkey(root, item), NIL); + retval = makeList1(make_canonical_pathkey(root, item)); } else { @@ -678,7 +678,7 @@ make_pathkeys_for_sortclauses(List *sortclauses, * canonicalize_pathkeys() might replace it with a longer sublist * later. */ - pathkeys = lappend(pathkeys, lcons(pathkey, NIL)); + pathkeys = lappend(pathkeys, makeList1(pathkey)); } return pathkeys; } |