© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
2 replies
LeDragunov

Transaction (Rollback & Commit)

Hello all,

I'm creating functions to perform multiple actions (Insert and delete) on tables. I'm afraid that some failure might take place while the function is in process, so is it recommended to use Rollback & commit in such scenario?

I've tried my self and found out that the function is not committing unless all actions took place. But wanted to double check with you all if rollback and commit is necessary or not or supabase is already handling it.

Thanks ❤️
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

Persistent branch rollback failure
SupabaseSSupabase / help-and-questions
6mo ago
Is there a need to put my migration within an transaction between `BEGIN;` / `COMMIT;` statements.
SupabaseSSupabase / help-and-questions
4mo ago
Transaction | setup own server
SupabaseSSupabase / help-and-questions
3y ago
Read-only transaction error
SupabaseSSupabase / help-and-questions
4y ago