Ā© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
hausofalejandro

triggers and functions behave like transactions?

Hello everyone! I have some actions that run some triggers/functions, for example:

1. Delete a row from a table
2. It fires a trigger pointing to a function
3. That function inserts a row in another table

I was wondering if for some reason the (1) delete is completed succesfully, but the (3) inserts fails, Will I end with inconsistent data?, or it will roll back the delete action like if it was a transaction?

Thanks in advance guys!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Functions - Async Triggers
SupabaseSSupabase / help-and-questions
4y ago
Transactions in Edge Functions
SupabaseSSupabase / help-and-questions
4y ago
Dependent Database Triggers & Functions
SupabaseSSupabase / help-and-questions
4y ago
Func and Triggers
SupabaseSSupabase / help-and-questions
4y ago