From 78114cd4d4fd99feb0c753de34d358b16d1ff0ee Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 22 Aug 1999 20:15:04 +0000 Subject: Further planner/optimizer cleanups. Move all set_tlist_references and fix_opids processing to a single recursive pass over the plan tree executed at the very tail end of planning, rather than haphazardly here and there at different places. Now that tlist Vars do not get modified until the very end, it's possible to get rid of the klugy var_equal and match_varid partial-matching routines, and just use plain equal() throughout the optimizer. This is a step towards allowing merge and hash joins to be done on expressions instead of only Vars ... --- src/backend/parser/parse_func.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/parser/parse_func.c') diff --git a/src/backend/parser/parse_func.c b/src/backend/parser/parse_func.c index 4a227de2c5b..19a287d99e8 100644 --- a/src/backend/parser/parse_func.c +++ b/src/backend/parser/parse_func.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.53 1999/08/21 03:48:55 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.54 1999/08/22 20:15:03 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -444,7 +444,7 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs, */ toid = typeTypeId(typenameType(relname)); /* replace it in the arg list */ - lfirst(fargs) = makeVar(vnum, 0, toid, -1, 0, vnum, 0); + lfirst(fargs) = makeVar(vnum, 0, toid, -1, 0); } else if (!attisset) { /* set functions don't have parameters */ @@ -1300,7 +1300,7 @@ setup_tlist(char *attname, Oid relid) 0, InvalidOid, false); - varnode = makeVar(-1, attno, typeid, type_mod, 0, -1, attno); + varnode = makeVar(-1, attno, typeid, type_mod, 0); tle = makeTargetEntry(resnode, (Node *) varnode); return lcons(tle, NIL); @@ -1325,7 +1325,7 @@ setup_base_tlist(Oid typeid) 0, InvalidOid, false); - varnode = makeVar(-1, 1, typeid, -1, 0, -1, 1); + varnode = makeVar(-1, 1, typeid, -1, 0); tle = makeTargetEntry(resnode, (Node *) varnode); return lcons(tle, NIL); -- cgit v1.2.3