© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
1 reply
tadeegan

migration timeout

Hello

I have a table with ~40M rows. I am trying to build a hash or btree index but I can't get supabase to build the index, it always times out. Is there any setting to tweak to increase timeout tollerance on migration applications?

I have tried with both

CREATE INDEX X

and

CREATE INDEX CONCURRENTLY X

I think CONCURRENTLY used to work but would timeout actually building the index in the background... Now it wont even apply the migration:

Applying migration 20250911154635_create_trips_payment_intent_hash_index_concurrently.sql...
ERROR: canceling statement due to statement timeout (SQLSTATE 57014)
At statement: 0
CREATE INDEX CONCURRENTLY idx_trips_payment_intent_hash
ON trips USING HASH (payment_intent_id)
WHERE payment_intent_id IS NOT NULL
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

timeout
SupabaseSSupabase / help-and-questions
2mo ago
Migration
SupabaseSSupabase / help-and-questions
6mo ago
Request timeout
SupabaseSSupabase / help-and-questions
4mo ago
Connection timeout
SupabaseSSupabase / help-and-questions
4mo ago