mirror of
https://github.com/postgres/postgres.git
synced 2026-02-18 01:59:53 -05:00
Remove extra check_stack_depth() from dropconstraint_internal()
The second check was added byd57b7cc33without taking into account there is already a check sinceb0f7dd915. Reported-by: Ashutosh Bapat, Alexander Lakhin Discussion: https://postgr.es/m/CAExHW5sBZWDjeBUFs_ehEDM%2BuhWxTiBkPbLiat7ZjWkb-DWQWw%40mail.gmail.com
This commit is contained in:
parent
fcd210d496
commit
75bcba6cbd
1 changed files with 0 additions and 3 deletions
|
|
@ -12738,9 +12738,6 @@ dropconstraint_internal(Relation rel, HeapTuple constraintTup, DropBehavior beha
|
|||
/* Guard against stack overflow due to overly deep inheritance tree. */
|
||||
check_stack_depth();
|
||||
|
||||
/* since this function recurses, it could be driven to stack overflow */
|
||||
check_stack_depth();
|
||||
|
||||
/* At top level, permission check was done in ATPrepCmd, else do it */
|
||||
if (recursing)
|
||||
ATSimplePermissions(AT_DropConstraint, rel, ATT_TABLE | ATT_FOREIGN_TABLE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue