What problem does it solve?
Postgres databases suffer from slow queries, inefficient schemas, connection exhaustion, and insecure or slow RLS policies; this skill delivers prioritized, actionable best-practice rules and concrete SQL rewrites to diagnose and fix those problems quickly.
Core Features & Use Cases
- Organized Reference Rules: Eight prioritized categories (query, conn, security, schema, lock, data, monitor, advanced) with focused guidance and examples.
- Actionable SQL Fixes: Concrete incorrect/correct examples for missing/partial/composite/covering indexes, JSONB and full-text indexing, partitioning, UPSERT patterns, and efficient pagination.
- Operational Guidance: Connection pooling, connection limits, prepared-statement patterns for pooled environments, transaction best practices, advisory locks, SKIP LOCKED queue processing, and monitoring with EXPLAIN ANALYZE and pg_stat_statements.
- Use Case: Audit a slow reporting query, receive index and schema-change recommendations, and produce migration-safe commands with impact estimates and monitoring steps.
Quick Start
Analyze this SQL and recommend prioritized index, schema, and RLS changes with example corrected SQL and estimated impact.