Skip to content

Commit 75bcba6

Browse files
committed
Remove extra check_stack_depth() from dropconstraint_internal()
The second check was added by d57b7cc without taking into account there is already a check since b0f7dd9. Reported-by: Ashutosh Bapat, Alexander Lakhin Discussion: https://postgr.es/m/CAExHW5sBZWDjeBUFs_ehEDM%2BuhWxTiBkPbLiat7ZjWkb-DWQWw%40mail.gmail.com
1 parent fcd210d commit 75bcba6

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)