The postgres-optimization skill provides a comprehensive toolkit for enhancing PostgreSQL performance and scalability. It equips Claude with the expertise to design efficient indexing strategies—including B-tree, GIN, GiST, and partial indexes—while providing deep insights into interpreting complex query execution plans via EXPLAIN ANALYZE. The skill covers advanced topics such as table partitioning for datasets exceeding 10 million rows, high-performance JSONB operations, and connection pooling configurations using PgBouncer. By identifying common anti-patterns and offering a structured performance checklist, this skill ensures that your database layer remains responsive and resource-efficient under heavy workloads.
主要功能
014 GitHub stars
02Deep-dive query plan analysis for identifying bottlenecks like Seq Scans
03Advanced indexing strategies including partial, covering, and concurrent indexes
04Optimized JSONB operators and GIN indexing for document storage
05Range-based table partitioning implementation for large-scale data
06Connection pooling and server tuning parameters for PgBouncer
使用场景
01Optimizing semi-structured data storage and retrieval using JSONB
02Architecting scalable database schemas for applications with high write/read volume
03Diagnosing and resolving performance bottlenecks in slow-running SQL queries