PostgreSQL Patterns & Best Practices
Optimizes PostgreSQL performance and security through expert schema design, indexing strategies, and best practices.
This Claude Code skill provides a comprehensive library of PostgreSQL patterns and best practices tailored for modern application development. It offers domain-specific guidance on selecting optimal data types, implementing efficient indexing strategies like GIN and BRIN, and securing data with optimized Row Level Security (RLS). Designed based on industry standards from platforms like Supabase, it helps developers troubleshoot slow queries, prevent table bloat, and implement advanced database patterns such as cursor-based pagination and efficient job queues directly within their AI-powered workflow.
主要功能
01Anti-pattern detection for unindexed foreign keys and slow query analysis
02Optimized Row Level Security (RLS) policy patterns for multi-tenant security
0318 GitHub stars
04Comprehensive indexing cheat sheet for B-tree, GIN, BRIN, and Composite indexes
05Advanced SQL patterns for UPSERTs, cursor pagination, and SKIP LOCKED queues
06Database configuration templates for connection limits and monitoring extensions
使用场景
01Optimizing slow database queries and identifying missing indexes in existing schemas
02Designing scalable and secure database architectures for new backend services
03Implementing high-performance data patterns like JSONB indexing and time-series management