]> granicus.if.org Git - postgresql/commitdiff
Assert that create_unique_path returns non-NULL.
authorRobert Haas <rhaas@postgresql.org>
Thu, 28 Jan 2016 03:03:18 +0000 (22:03 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 28 Jan 2016 03:03:18 +0000 (22:03 -0500)
Per off-list discussion with Tom Lane and Michael Paquier, Coverity
gets unhappy if this is not done.

src/backend/optimizer/path/joinpath.c

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