diff options
author | Richard Guo | 2025-04-03 07:43:53 +0000 |
---|---|---|
committer | Richard Guo | 2025-04-03 07:43:53 +0000 |
commit | ea5d3f52334a1693a8b9e110095718c79a678a5f (patch) | |
tree | 5d3263a4fc0c10fd08e4d79f3d9d69e995c0c5a4 | |
parent | 84fea854c990a59d00d2fec15f81a96565d4bce4 (diff) |
Remove duplicated comment in get_relation_constraints
The check for non-inheritable constraints is performed later, and the
same comment is included at that point.
While we're here, remove one extraneous blank line.
Author: jian he <[email protected]>
Reviewed-by: Kirill Reshke <[email protected]>
Reviewed-by: Richard Guo <[email protected]>
Discussion: https://postgr.es/m/CACJufxETi6x86S8EkH8mRfOcm2AenoE9t1pyCFVMpU34gVhF3w@mail.gmail.com
-rw-r--r-- | src/backend/optimizer/util/plancat.c | 4 |
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); /* |