Skip to content

Commit ea5d3f5

Browse files
author
Richard Guo
committed
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 <jian.universality@gmail.com> Reviewed-by: Kirill Reshke <reshkekirill@gmail.com> Reviewed-by: Richard Guo <guofenglinux@gmail.com> Discussion: https://postgr.es/m/CACJufxETi6x86S8EkH8mRfOcm2AenoE9t1pyCFVMpU34gVhF3w@mail.gmail.com
1 parent 84fea85 commit ea5d3f5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/backend/optimizer/util/plancat.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,8 +1303,7 @@ get_relation_constraints(PlannerInfo *root,
13031303

13041304
/*
13051305
* If this constraint hasn't been fully validated yet, we must
1306-
* ignore it here. Also ignore if NO INHERIT and we weren't told
1307-
* that that's safe.
1306+
* ignore it here.
13081307
*/
13091308
if (!constr->check[i].ccvalid)
13101309
continue;
@@ -1321,7 +1320,6 @@ get_relation_constraints(PlannerInfo *root,
13211320
if (constr->check[i].ccnoinherit && !include_noinherit)
13221321
continue;
13231322

1324-
13251323
cexpr = stringToNode(constr->check[i].ccbin);
13261324

13271325
/*

0 commit comments

Comments
 (0)