PostgreSQL Database Patterns

•
12
•

Optimizes PostgreSQL performance and security through proven schema design patterns and indexing best practices.

PostgreSQL Database Patterns is a comprehensive skill designed to help developers architect, optimize, and secure their database layer. It provides Claude with expert-level guidance on selecting the correct index types—such as B-tree, GIN, and BRIN—for specific query patterns, implementing efficient data types, and establishing robust Row Level Security (RLS) policies. Based on Supabase best practices, this skill is indispensable for troubleshooting slow queries, preventing table bloat, and implementing advanced SQL patterns like cursor pagination and UPSERT operations in high-performance applications.

주요 기능

01Advanced query templates for cursor pagination and queue processing
02Optimized data type recommendations for IDs, currency, and timestamps
03Expert indexing cheat sheet for B-tree, GIN, and BRIN optimizations
04Anti-pattern detection for unindexed foreign keys and table bloat
05Pre-built Row Level Security (RLS) and UPSERT implementation patterns
0612 GitHub stars

사용 사례

01Refactoring slow SQL queries and optimizing production database performance
02Implementing secure multi-tenant data isolation using RLS policies
03Designing high-performance database schemas for new applications