Assert that create_unique_path returns non-NULL.

Per off-list discussion with Tom Lane and Michael Paquier, Coverity
gets unhappy if this is not done.
pull/10/head
Robert Haas 10 years ago
parent 025b2f3392
commit eaf7b1f643
  1. 1
      src/backend/optimizer/path/joinpath.c

@ -1259,6 +1259,7 @@ consider_parallel_nestloop(PlannerInfo *root,
continue; continue;
innerpath = (Path *) create_unique_path(root, innerrel, innerpath = (Path *) create_unique_path(root, innerrel,
innerpath, extra->sjinfo); innerpath, extra->sjinfo);
Assert(innerpath);
} }
try_partial_nestloop_path(root, joinrel, outerpath, innerpath, try_partial_nestloop_path(root, joinrel, outerpath, innerpath,

Loading…
Cancel
Save