© 2026 Hedgehog Software, LLC

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

Can cron-scheduled functions interact with DB?

I saw this example: https://supabase.com/docs/guides/functions/schedule-functions
It shows how to use pg_cron to schedule the call of an edge function.
My question is: Can a function triggered from the db also open its own db connection to interact with the DB, or would it not work because of re-entrancy? (DB calling the function which tries to access the DB)
Scheduling Edge Functions | Supabase Docs
Schedule Edge Functions with pg_cron.
Scheduling Edge Functions | Supabase Docs
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

Scheduled Functions, how?
SupabaseSSupabase / help-and-questions
4y ago
Edge functions with cron scheduler?
SupabaseSSupabase / help-and-questions
4y ago
supabase db reset: problems with pg_cron
SupabaseSSupabase / help-and-questions
14mo ago
DB functions for production
SupabaseSSupabase / help-and-questions
4y ago