What problem does it solve? Writing efficient PostgreSQL queries and schemas requires knowing which index types, data types, and patterns fit each situation, and mistakes like missing indexes or wrong types cause slow queries and production issues. ## Core Features & Use Cases - Index Selection Guide: Cheat sheet mapping query patterns to B-tree, GIN, BRIN, composite, covering, and partial indexes. - Anti-Pattern Detection: Ready-to-run SQL queries that find unindexed foreign keys, slow queries via pg_stat_statements, and table bloat. - Security & Configuration Templates: Optimized Row Level Security policies, UPSERT and cursor pagination patterns, and connection/timeout configuration defaults. - Use Case: When a query on your orders table is slow, consult the index cheat sheet to add a composite index on (status, created_at) and verify the fix with pg_stat_statements. ## Quick Start Ask the assistant to review your PostgreSQL query or schema using postgres-patterns and suggest the right index and data types.