Diagnoses and resolves deep PostgreSQL performance issues, connection leaks, and RLS conflicts within Supabase environments.
This skill provides a comprehensive toolkit for advanced Supabase diagnostics, moving beyond basic debugging to solve complex performance regressions and production bottlenecks. It leverages PostgreSQL system catalogs like pg_stat_statements and pg_locks to identify slow queries and lock contention, detects silent data filtering in RLS policies, and profiles Edge Function latency. Whether you are investigating connection pool exhaustion or intermittent Realtime drops, this skill offers the precise SQL queries and SDK patterns needed for deep-stack troubleshooting and support escalation.
Key Features
01Lock contention and deadlock detection via pg_locks monitoring
02Performance monitoring wrappers for the Supabase JS SDK
03RLS policy conflict debugging with role-based simulation
04Connection leak identification through pg_stat_activity analysis
05Slow query analysis using pg_stat_statements and EXPLAIN ANALYZE
061,887 GitHub stars
Use Cases
01Identifying the root cause of production database timeouts and query regressions
02Debugging silent data access failures caused by complex or overlapping RLS policies
03Detecting and clearing leaked database connections that exhaust the pool