© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
11 replies
Deleted User

How to use NOTIFY without triggers or functions?

Hi!

As you may know, triggers and functions are not production ready within Supabase.
How would one go about getting notifications (for use in python) with the operation as a payload?

What I did was
cur.execute(f"INSERT INTO mydb (model, img, multi_dl) VALUES ('{model}', '{img}', '{multi_dl}'); NOTIFY test, 'placeholder';")
cur.execute(f"INSERT INTO mydb (model, img, multi_dl) VALUES ('{model}', '{img}', '{multi_dl}'); NOTIFY test, 'placeholder';")


I'd like the placeholder to be the operation I just executed (intert into...). Any ideas?
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
Dependent Database Triggers & Functions
SupabaseSSupabase / help-and-questions
4y ago
triggers and functions behave like transactions?
SupabaseSSupabase / help-and-questions
4y ago
Supabase revoking refresh token without any reuse or timeout triggers
SupabaseSSupabase / help-and-questions
2mo ago