© 2026 Hedgehog Software, LLC

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

Statement timeout error

Hello! I have a script which upserts or deletes data from supabase tables. I'm running the script on a cron every X minutes. Some of the functionality includes running a method using
.rpc
.rpc
which deletes some rows. I get a
canceling statement due to statement timeout
canceling statement due to statement timeout
error.

I've read this article https://supabase.com/docs/guides/database/postgres/configuration but I don't understand what is usefull from it. Should I run this
alter role authenticator set statement_timeout = '15s';
alter role authenticator set statement_timeout = '15s';
? But I don't use any roles. I also don't have any RLS set up. The project is on Pro plan,
Database configuration | Supabase Docs
Updating the default configuration for your Postgres database.
Database configuration | 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

debugging `canceling statement due to statement timeout` error
SupabaseSSupabase / help-and-questions
4y ago
cancelling statement due to statement timeout
SupabaseSSupabase / help-and-questions
8mo ago
canceling statement due to statement timeout
SupabaseSSupabase / help-and-questions
3y ago
canceling statement due to statement timeout
SupabaseSSupabase / help-and-questions
4y ago