PostgreSQL Patterns

•
173k
•

Provides optimized PostgreSQL patterns for query performance, schema design, and database security within Claude Code.

The postgres-patterns skill equips Claude with specialized knowledge for architecting and maintaining high-performance PostgreSQL databases. It offers a quick reference for optimal index types, data type selection, and advanced SQL patterns like Row Level Security (RLS), cursor-based pagination, and queue processing with SKIP LOCKED. By integrating Supabase best practices, it helps developers detect anti-patterns such as unindexed foreign keys or table bloat, ensuring database migrations and queries are production-ready and scalable.

주요 기능

01Automated anti-pattern detection for slow queries and table bloat
02Data type best practices for IDs, strings, and timestamps
03Advanced SQL snippets for UPSERT and Cursor Pagination
04172,651 GitHub stars
05Optimized Row Level Security (RLS) implementation patterns
06Index selection guide for B-tree, GIN, BRIN, and Partial indexes

사용 사례

01Securing multi-tenant applications with production-grade RLS policies
02Troubleshooting slow queries and implementing indexing strategies
03Designing and optimizing database schemas and migrations