*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/rewrite/rewriteManip.c,v 1.116 2008/10/21 20:42:53 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/rewrite/rewriteManip.c,v 1.117 2008/10/22 20:17:52 tgl Exp $
*
*-------------------------------------------------------------------------
*/
}
/* fall through to examine children */
}
- if (IsA(node, PlaceHolderInfo))
- {
- PlaceHolderInfo *phinfo = (PlaceHolderInfo *) node;
+ /* Shouldn't need to handle other planner auxiliary nodes here */
+ Assert(!IsA(node, SpecialJoinInfo));
+ Assert(!IsA(node, PlaceHolderInfo));
- if (context->sublevels_up == 0)
- {
- phinfo->ph_eval_at = offset_relid_set(phinfo->ph_eval_at,
- context->offset);
- phinfo->ph_needed = offset_relid_set(phinfo->ph_needed,
- context->offset);
- }
- /* fall through to examine children */
- }
if (IsA(node, Query))
{
/* Recurse into subselects */
}
/* fall through to examine children */
}
- if (IsA(node, PlaceHolderInfo))
- {
- PlaceHolderInfo *phinfo = (PlaceHolderInfo *) node;
+ /* Shouldn't need to handle other planner auxiliary nodes here */
+ Assert(!IsA(node, SpecialJoinInfo));
+ Assert(!IsA(node, PlaceHolderInfo));
- if (context->sublevels_up == 0)
- {
- phinfo->ph_eval_at = adjust_relid_set(phinfo->ph_eval_at,
- context->rt_index,
- context->new_index);
- phinfo->ph_needed = adjust_relid_set(phinfo->ph_needed,
- context->rt_index,
- context->new_index);
- }
- /* fall through to examine children */
- }
if (IsA(node, Query))
{
/* Recurse into subselects */