Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .unreleased/pr_8496
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Implements: #8496 Fix dropping chunks with foreign keys
Thanks: @pierreforstmann for fixing a bug when dropping chunks with foreign keys
3 changes: 2 additions & 1 deletion src/chunk_constraint.c
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,8 @@ chunk_constraint_drop_constraint(TupleInfo *ti)
};

if (OidIsValid(constrobj.objectId))
performDeletion(&constrobj, DROP_RESTRICT, 0);
/* must use DROP_CASCADE if regular table references a hypertable */
performDeletion(&constrobj, DROP_CASCADE, 0);
}
}

Expand Down
Loading
Loading