From eaf7b1f6432480e93d8c6824fbd503761a1c1a4f Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 27 Jan 2016 22:03:18 -0500 Subject: [PATCH] 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. --- src/backend/optimizer/path/joinpath.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/optimizer/path/joinpath.c b/src/backend/optimizer/path/joinpath.c index e61fa589a8..3b898dafee 100644 --- a/src/backend/optimizer/path/joinpath.c +++ b/src/backend/optimizer/path/joinpath.c @@ -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, -- 2.40.0