Postgres db update
I upgraded my postgres to 17 and after the upgrade all the relations aren’t working anymore… someone knows what can I do in order to return them and not manually adding them again?
search_path to prevent injection attacks), PostgREST started returning 404 errors for existing tables.public schemaanon and authenticated rolespublic.courses within your function.qa_question_votes, but the error is about qa_questions! postgrest_test): Works (no foreign keys!)
42P01 ("undefined_table"), not permission deniedsearch_pathauthenticatedpublic.courses### **During Disk Upgrade (timestamp 1761159159-1761159604):**### **After Restart (timestamp 1761159049):**### **Gradual Recovery:**## :rotating_light: What Actually Happened:
**You didn't just change disk size - Supabase also upgraded your PostgreSQL from 15.8 → 17.6!**
During this major version upgrade:
1. Database was migrated to new version
2. PostgREST restarted
3. PostgREST loaded schema cache **during the migration**
4. Cache captured only **0 Relations** initially
5. Then **75 Relations** (incomplete)
6. Now stuck at **78 Relations** (still missing tables)
During disk upgrade (Nano→Micro), PostgreSQL was upgraded to 17.6.
PostgREST loaded schema cache during migration and captured incomplete state.
Evidence from logs:
- Before: PostgreSQL 15.8, 75 Relations
- During upgrade: Multiple connection failures
- After: PostgreSQL 17.6, started with 0 Relations
- Current: Stuck at 78 Relations (should be 80+)
- New tables ARE visible, old tables return 404
Need: Full PostgREST service restart to rebuild schema cacheqa_question_votesqa_questionsInserting into: qa_question_votes
Foreign key points to: qa_questions (question_id → qa_questions.id)
Error: "qa_questions" does not existpostgrest_test42P01POST .../qa_question_votes // Trying to insert into THIS table
message: 'relation "qa_questions" does not exist' // But error about THIS tableSET ROLE authenticated;
SELECT COUNT(*) FROM waitlist; -- Returns 66 rows
RESET ROLE;