What problem does it solve?
A comprehensive rulebook and reference library to diagnose and fix Postgres performance, scaling, and security issues, with Supabase-focused notes to guide practical implementation.
Core Features & Use Cases
- Query Performance: Identify missing or misused indexes, choose correct index types, and craft covering or composite indexes to eliminate sequential scans.
- Connection & Concurrency: Recommend connection pooling, idle timeouts, and connection limits to prevent exhaustion and reduce memory pressure.
- Schema & Data Patterns: Advise on data types, partitioning, primary keys, foreign key indexing, and safe migration patterns to improve long-term maintainability.
- Security & RLS: Provide patterns for Row-Level Security that balance safety with performance and show how to optimize RLS policies.
- Monitoring & Diagnostics: Guide use of EXPLAIN ANALYZE, pg_stat_statements, and autovacuum tuning to surface and validate fixes.
Quick Start
Use the supabase-postgres-best-practices skill to analyze a slow query and return prioritized SQL fixes, index recommendations, and configuration changes.