aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/optimizer/util/plancat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/optimizer/util/plancat.c b/src/backend/optimizer/util/plancat.c
index 65b7d73bb5e..441684a72b1 100644
--- a/src/backend/optimizer/util/plancat.c
+++ b/src/backend/optimizer/util/plancat.c
@@ -1303,8 +1303,7 @@ get_relation_constraints(PlannerInfo *root,
/*
* If this constraint hasn't been fully validated yet, we must
- * ignore it here. Also ignore if NO INHERIT and we weren't told
- * that that's safe.
+ * ignore it here.
*/
if (!constr->check[i].ccvalid)
continue;
@@ -1321,7 +1320,6 @@ get_relation_constraints(PlannerInfo *root,
if (constr->check[i].ccnoinherit && !include_noinherit)
continue;
-
cexpr = stringToNode(constr->check[i].ccbin);
/*