@@ -429,8 +429,8 @@ pathman_set_rel_pathlist_hook(PlannerInfo *root, RelOptInfo *rel, Index rti, Ran
429
429
* Expand simple_rte_array and simple_rel_array
430
430
*/
431
431
432
- if (ranges )
433
- {
432
+ if (ranges )
433
+ {
434
434
len = irange_list_length (ranges );
435
435
436
436
/* Expand simple_rel_array and simple_rte_array */
@@ -536,7 +536,6 @@ set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
536
536
parent_size += childrel -> width * childrel -> rows ;
537
537
}
538
538
539
- Assert (parent_rows > 0 );
540
539
rel -> rows = parent_rows ;
541
540
rel -> width = rint (parent_size /parent_rows );
542
541
// for (i = 0; i < nattrs; i++)
@@ -803,8 +802,8 @@ change_varno_walker(Node *node, change_varno_context *context)
803
802
change_varno_walker ((Node * )em -> em_expr ,context );
804
803
if (bms_is_member (context -> old_varno ,em -> em_relids ))
805
804
{
806
- bms_del_member (em -> em_relids ,context -> old_varno );
807
- bms_add_member (em -> em_relids ,context -> new_varno );
805
+ em -> em_relids = bms_del_member (em -> em_relids ,context -> old_varno );
806
+ em -> em_relids = bms_add_member (em -> em_relids ,context -> new_varno );
808
807
}
809
808
return false;
810
809