mirror of
https://github.com/postgres/postgres.git
synced 2025-11-29 23:43:17 +03:00
Clean up some mistakes in handling of uplevel Vars in planner.
Most parts of the planner should ignore, or indeed never even see, uplevel Vars because they will be or have been replaced by Params. There were a couple of places that got it wrong though, probably my fault from recent changes...
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.38 1999/08/22 20:14:47 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.39 1999/08/26 05:07:41 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -50,7 +50,7 @@ static void check_hashjoinable(RestrictInfo *restrictinfo);
|
||||
void
|
||||
make_var_only_tlist(Query *root, List *tlist)
|
||||
{
|
||||
List *tlist_vars = pull_var_clause((Node *) tlist);
|
||||
List *tlist_vars = pull_var_clause((Node *) tlist, false);
|
||||
|
||||
add_vars_to_targetlist(root, tlist_vars);
|
||||
freeList(tlist_vars);
|
||||
|
||||
Reference in New Issue
Block a user