PostgreSQL Patterns

•
10
•

Optimizes PostgreSQL database performance with proven indexing strategies, schema design patterns, and security best practices.

PostgreSQL Patterns delivers production-ready database best practices inspired by Supabase engineering standards. It equips Claude with specialized knowledge for designing efficient database schemas, choosing optimal index types (B-tree, GIN, BRIN, covering, and partial indexes), implementing high-performance Row Level Security (RLS) policies, and executing performant SQL queries. The skill also provides automated diagnostic queries to detect unindexed foreign keys, table bloat, and slow query bottlenecks, making it an indispensable reference when architecting migrations, scaling queries, and hardening database configurations.

主要功能

0110 GitHub stars
02Index selection guide covering B-tree, GIN, BRIN, composite, covering, and partial indexing
03Optimized Row Level Security (RLS) policy definitions for Supabase and PostgreSQL
04Recommended PostgreSQL system configuration templates for memory, timeouts, and connection limits
05Diagnostic queries to identify missing foreign key indexes, table bloat, and slow queries
06Production-ready SQL patterns for UPSERT, cursor pagination, and job queues with SKIP LOCKED

使用场景

01Troubleshooting slow query execution plans and resolving database bloat
02Implementing scalable multi-tenant access control using Row Level Security
03Designing high-performance database schemas and data migrations