Skip to content

Commit 9184073

Browse files
committed
Call union_planner() instead of planner().
1 parent 4a6e3a6 commit 9184073

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/backend/optimizer/prep/prepunion.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.18 1998/01/15 18:59:53 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.19 1998/02/13 03:39:26 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -129,14 +129,14 @@ plan_union_queries(Query *parse)
129129
List *hold_unionClause = parse->unionClause;
130130

131131
parse->unionClause = NIL; /* prevent recursion */
132-
union_plans = lcons(planner(parse), NIL);
132+
union_plans = lcons(union_planner(parse), NIL);
133133
union_rts = lcons(parse->rtable, NIL);
134134

135135
foreach(ulist, hold_unionClause)
136136
{
137137
Query *union_query = lfirst(ulist);
138138

139-
union_plans = lappend(union_plans, planner(union_query));
139+
union_plans = lappend(union_plans, union_planner(union_query));
140140
union_rts = lappend(union_rts, union_query->rtable);
141141
}
142142
}
@@ -159,15 +159,15 @@ plan_union_queries(Query *parse)
159159
* Recursion, but UNION only.
160160
* The last one is a UNION, so it will not come here in recursion,
161161
*/
162-
union_plans = lcons(planner(parse), NIL);
162+
union_plans = lcons(union_planner(parse), NIL);
163163
union_rts = lcons(parse->rtable, NIL);
164164

165165
/* Append the remainging UNION ALLs */
166166
foreach(ulist, unionall_queries)
167167
{
168168
Query *unionall_query = lfirst(ulist);
169169

170-
union_plans = lappend(union_plans, planner(unionall_query));
170+
union_plans = lappend(union_plans, union_planner(unionall_query));
171171
union_rts = lappend(union_rts, unionall_query->rtable);
172172
}
173173
}
@@ -276,7 +276,7 @@ plan_inherit_query(List *relids,
276276
relid,
277277
new_root);
278278

279-
union_plans = lappend(union_plans, planner(new_root));
279+
union_plans = lappend(union_plans, union_planner(new_root));
280280
union_rtentries = lappend(union_rtentries, new_rt_entry);
281281
}
282282

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy