PostgreSQL Patterns & Optimization

•
9
•

Optimizes PostgreSQL databases through production-grade schema design, advanced indexing strategies, and performance-tuning patterns.

PostgreSQL Patterns is a specialized skill for Claude Code that equips developers with expert-level guidance on database architecture and optimization. Drawing from Supabase best practices, it facilitates the implementation of high-performance SQL queries, scalable schema designs, and robust security through Row Level Security (RLS). Whether you are troubleshooting slow queries, configuring connection pooling, or selecting specialized index types like GIN or BRIN, this skill provides the implementation patterns and anti-pattern detection necessary to maintain a production-grade database environment.

主な機能

01Production-ready configuration templates for system memory and timeouts
029 GitHub stars
03Advanced query patterns for UPSERT, cursor pagination, and job queues
04Strategic index selection guide for B-tree, GIN, BRIN, and composite indexes
05Performance-optimized Row Level Security (RLS) policy templates
06Automated anti-pattern detection for unindexed foreign keys and table bloat

ユースケース

01Designing and migrating high-performance database schemas from scratch
02Implementing secure, multi-tenant data access layers using RLS
03Auditing and fixing slow database queries and unindexed relationships