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

Commit75bcba6

Browse files
committed
Remove extra check_stack_depth() from dropconstraint_internal()
The second check was added byd57b7cc without taking into account thereis already a check sinceb0f7dd9.Reported-by: Ashutosh Bapat, Alexander LakhinDiscussion:https://postgr.es/m/CAExHW5sBZWDjeBUFs_ehEDM%2BuhWxTiBkPbLiat7ZjWkb-DWQWw%40mail.gmail.com
1 parentfcd210d commit75bcba6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12738,9 +12738,6 @@ dropconstraint_internal(Relation rel, HeapTuple constraintTup, DropBehavior beha
1273812738
/* Guard against stack overflow due to overly deep inheritance tree. */
1273912739
check_stack_depth();
1274012740

12741-
/* since this function recurses, it could be driven to stack overflow */
12742-
check_stack_depth();
12743-
1274412741
/* At top level, permission check was done in ATPrepCmd, else do it */
1274512742
if (recursing)
1274612743
ATSimplePermissions(AT_DropConstraint, rel, ATT_TABLE | ATT_FOREIGN_TABLE);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp