Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Don't crash if foreign key constraint is invalid in transaction #1004

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

nikclayton
Copy link
Contributor

ForeignKey constraints can be invalidated in the middle of a transaction even if a later statement in the same transaction will make them valid again. This seems to be causing production crashes.

Defer foreign key constraint checks until the end of the transaction to prevent this.

ForeignKey constraints can be invalidated in the middle of a transaction
even if a later statement in the same transaction will make them valid
again. This seems to be causing production crashes.

Defer foreign key constraint checks until the end of the transaction
to prevent this.
@nikclayton nikclayton merged commit eeca401 into main Oct 14, 2024
23 checks passed
@nikclayton nikclayton deleted the nikclayton-patch-1 branch October 14, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant