What problem does it solve?
A concise reference to reduce slow queries, schema inefficiencies, and security misconfigurations in PostgreSQL by providing proven indexing strategies, schema recommendations, and diagnostic queries based on Supabase best practices.
Core Features & Use Cases
- Indexing guidance for equality, range, composite, GIN, and BRIN use cases to improve query latency.
- Schema and data-type recommendations to choose appropriate column types and avoid common anti-patterns.
- Anti-pattern detection queries to locate missing indexes, slow statements, and table bloat.
- Security and RLS examples showing safe policy patterns for tenant isolation and minimal privilege defaults.
- Configuration templates and operational tips for connection limits, timeouts, and monitoring extensions.
- Use Case: Tune an OLTP database for low-latency lookups and design migrations for large tables without causing long locks.
Quick Start
Use the postgres-patterns skill to audit a slow query, recommend an index or schema change, and return the minimal SQL changes needed.