aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_node.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-08-22 20:15:04 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-08-22 20:15:04 +0000
commit78114cd4d4fd99feb0c753de34d358b16d1ff0ee (patch)
tree58838858badf427beddaafe425a9def510741d37 /src/backend/parser/parse_node.c
parentdb436adf761bd5cb7990745ceba2959ac4bfca7c (diff)
downloadpostgresql-78114cd4d4fd99feb0c753de34d358b16d1ff0ee.tar.gz
postgresql-78114cd4d4fd99feb0c753de34d358b16d1ff0ee.zip
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 ...
Diffstat (limited to 'src/backend/parser/parse_node.c')
-rw-r--r--src/backend/parser/parse_node.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/parser/parse_node.c b/src/backend/parser/parse_node.c
index 80a8543d5a5..48da11d8d23 100644
--- a/src/backend/parser/parse_node.c
+++ b/src/backend/parser/parse_node.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.29 1999/07/19 00:26:19 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.30 1999/08/22 20:15:04 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -216,8 +216,7 @@ make_var(ParseState *pstate, Oid relid, char *refname,
vartypeid = get_atttype(relid, attid);
type_mod = get_atttypmod(relid, attid);
- varnode = makeVar(vnum, attid, vartypeid, type_mod,
- sublevels_up, vnum, attid);
+ varnode = makeVar(vnum, attid, vartypeid, type_mod, sublevels_up);
return varnode;
}