Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’2mo agoβ€’
9 replies
Senese

Upstream request timeout on very simple ALTER TABLE statement

🀷otherSolved🟒SQL
I'm trying to use Python alembic migrations or even the SQL Editor to run a simple SQL query that create three columns over a table that has only 28 rows but it keeps running into timeouts after near 1 minute. The statement:

ALTER TABLE users ADD COLUMN browser VARCHAR;

ALTER TABLE users ADD COLUMN browser_version VARCHAR;

ALTER TABLE users ADD COLUMN last_login_at TIMESTAMP WITH TIME ZONE DEFAULT now() NOT NULL;

I have a dev database with the same configurations, only with fewer rows, and it runs the same query seamlessly. I'm suspecting that upgrading PostgreSQL version should fix it. It's v15.8.1.085 vs v17.6.1.052 of the dev db, though I don't think this is really the problem. The table is small and the query is ok. I don't believe that raising statement timeout would be the fix neither.
image.png
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

upstream request timeout
SupabaseSSupabase / help-and-questions
5mo ago
Error: SQL query ran into an upstream timeout (alter table)
SupabaseSSupabase / help-and-questions
2h ago
Statement timeout error
SupabaseSSupabase / help-and-questions
3y ago
cancelling statement due to statement timeout
SupabaseSSupabase / help-and-questions
8mo ago