PostgreSQL Database Patterns
Optimizes PostgreSQL schemas, indexes, queries, and Row Level Security policies using production-proven database patterns.
PostgreSQL Patterns equips Claude Code with battle-tested database design and query optimization guidelines inspired by Supabase best practices. It provides clear guidance for selecting optimal data types, designing high-performance indexes (B-tree, GIN, BRIN, partial, and covering), writing efficient Row Level Security (RLS) policies, and executing concurrent queue workflows with SKIP LOCKED. Whether you are architecting a new database schema, refactoring slow queries, or resolving table bloat, this skill ensures your PostgreSQL database remains scalable and secure.
주요 기능
01Schema design rules for correct data types, precision handling, and primary key selection
02Built-in SQL diagnostics for identifying unindexed foreign keys, slow queries, and table bloat
035 GitHub stars
04Comprehensive index guidance covering B-tree, GIN, BRIN, composite, partial, and covering indexes
05Proven implementation patterns for cursor pagination, UPSERTs, and concurrent worker queues
06Performance-optimized Row Level Security (RLS) policy templates and execution patterns
사용 사례
01Designing robust, production-grade PostgreSQL schemas and migration scripts from scratch
02Implementing performant Row Level Security (RLS) access controls for multi-tenant applications
03Diagnosing and resolving slow database queries using pg_stat_statements and index optimization