8000 Call union_planner() instead of planner(). · postgrespro/postgres_cluster@9184073 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

8000
Appearance settings

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
< 8000 td data-grid-cell-id="diff-16d1460e63d4d5a218c0bbd549a4674470ff0054525bf28b1ed3bbdfaf79e100-138-138-1" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">138
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);
138

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)
0