Skill 01 · Supabase Postgres Best Practices
Subchapter 1.2
references/_sections.mdMarkdown2 KBView on GitHub
This file defines the rule categories for Postgres best practices. Rules are automatically assigned to sections based on their filename prefix.
Take the examples below as pure demonstrative. Replace each section with the actual rule categories for Postgres best practices.
Impact: CRITICAL Description: Slow queries, missing indexes, inefficient query plans. The most common source of Postgres performance issues.
Impact: CRITICAL Description: Connection pooling, limits, and serverless strategies. Critical for applications with high concurrency or serverless deployments.
Impact: CRITICAL Description: Row-Level Security policies, privilege management, and authentication patterns.
Impact: HIGH Description: Table design, index strategies, partitioning, and data type selection. Foundation for long-term performance.
Impact: MEDIUM-HIGH Description: Transaction management, isolation levels, deadlock prevention, and lock contention patterns.
Impact: MEDIUM Description: N+1 query elimination, batch operations, cursor-based pagination, and efficient data fetching.
Impact: LOW-MEDIUM Description: Using pg_stat_statements, EXPLAIN ANALYZE, metrics collection, and performance diagnostics.
Impact: LOW Description: Full-text search, JSONB optimization, PostGIS, extensions, and advanced Postgres features.