aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-01-27 22:03:18 -0500
committerRobert Haas <rhaas@postgresql.org>2016-01-27 22:03:18 -0500
commiteaf7b1f6432480e93d8c6824fbd503761a1c1a4f (patch)
treef7b8f99703e9a99de97276829ce4f0eba9359423
parent025b2f339260b727e113a01a20b616a336bff00a (diff)
downloadpostgresql-eaf7b1f6432480e93d8c6824fbd503761a1c1a4f.tar.gz
postgresql-eaf7b1f6432480e93d8c6824fbd503761a1c1a4f.zip
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.
-rw-r--r--src/backend/optimizer/path/joinpath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/optimizer/path/joinpath.c b/src/backend/optimizer/path/joinpath.c
index e61fa589a8a..3b898dafee1 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,