diff options
author | Alexander Korotkov | 2024-02-21 00:46:56 +0000 |
---|---|---|
committer | Alexander Korotkov | 2024-02-21 00:51:41 +0000 |
commit | 75bcba6cbd2a6f62752d7917d9a3c0a52f8605c9 (patch) | |
tree | 77071f287a978e3ff70d62887371c82daae94955 /src | |
parent | fcd210d496dad7d9f68c9399113368ccf2f009b9 (diff) |
Remove extra check_stack_depth() from dropconstraint_internal()
The second check was added by d57b7cc33 without taking into account there
is already a check since b0f7dd915.
Reported-by: Ashutosh Bapat, Alexander Lakhin
Discussion: https://postgr.es/m/CAExHW5sBZWDjeBUFs_ehEDM%2BuhWxTiBkPbLiat7ZjWkb-DWQWw%40mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/commands/tablecmds.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 679dee10da4..f7987945563 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -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); |