aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/tablecmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index 0e95037dcf4..d20991a1e56 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -11922,12 +11922,12 @@ ATExecDropInherit(Relation rel, RangeVar *parent, LOCKMODE lockmode)
/* Off to RemoveInheritance() where most of the work happens */
RemoveInheritance(rel, parent_rel);
- /* keep our lock on the parent relation until commit */
- heap_close(parent_rel, NoLock);
-
ObjectAddressSet(address, RelationRelationId,
RelationGetRelid(parent_rel));
+ /* keep our lock on the parent relation until commit */
+ heap_close(parent_rel, NoLock);
+
return address;
}