diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c index ab4f376e92..11ddc857bc 100644 --- a/src/backend/optimizer/path/allpaths.c +++ b/src/backend/optimizer/path/allpaths.c @@ -956,7 +956,7 @@ set_inherit_target_rel_sizes(PlannerInfo *root, RelOptInfo *rel, Index rti, RangeTblEntry *rte) { int parentRTindex = rti; - bool has_live_children; + bool has_live_children = false; ListCell *l; /* Guard against stack overflow due to overly deep inheritance tree. */