|
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $PostgreSQL: pgsql/src/backend/optimizer/plan/subselect.c,v 1.105 2006/04/22 01:25:59 tgl Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/optimizer/plan/subselect.c,v 1.106 2006/04/28 20:57:49 tgl Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -1248,8 +1248,6 @@ SS_make_initplan_from_plan(PlannerInfo *root, Plan *plan,
|
1248 | 1248 | List *saved_initplan = PlannerInitPlan;
|
1249 | 1249 | SubPlan *node;
|
1250 | 1250 | Param *prm;
|
1251 |
| - Bitmapset *tmpset; |
1252 |
| - int paramid; |
1253 | 1251 |
|
1254 | 1252 | /*
|
1255 | 1253 | * Set up for a new level of subquery. This is just to keep
|
@@ -1280,18 +1278,9 @@ SS_make_initplan_from_plan(PlannerInfo *root, Plan *plan,
|
1280 | 1278 | PlannerInitPlan = lappend(PlannerInitPlan, node);
|
1281 | 1279 |
|
1282 | 1280 | /*
|
1283 |
| - * Make parParam list of params that current query level will pass to this |
1284 |
| - * child plan. (In current usage there probably aren't any.) |
| 1281 | + * The node can't have any inputs (since it's an initplan), so the |
| 1282 | + * parParam and args lists remain empty. |
1285 | 1283 | */
|
1286 |
| - tmpset = bms_copy(plan->extParam); |
1287 |
| - while ((paramid = bms_first_member(tmpset)) >= 0) |
1288 |
| - { |
1289 |
| - PlannerParamItem *pitem = list_nth(PlannerParamList, paramid); |
1290 |
| - |
1291 |
| - if (pitem->abslevel == PlannerQueryLevel) |
1292 |
| - node->parParam = lappend_int(node->parParam, paramid); |
1293 |
| - } |
1294 |
| - bms_free(tmpset); |
1295 | 1284 |
|
1296 | 1285 | /*
|
1297 | 1286 | * Make a Param that will be the subplan's output.
|
|
0 commit comments