Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitea5d3f5

Browse files
author
Richard Guo
committed
Remove duplicated comment in get_relation_constraints
The check for non-inheritable constraints is performed later, and thesame 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 parent84fea85 commitea5d3f5

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)

[8]ページ先頭

©2009-2025 Movatter.jp