What problem does it solve? PostgreSQL performance issues like slow queries, bloated tables, connection exhaustion, and replication lag are hard to diagnose without deep knowledge of PostgreSQL internals. This Skill provides structured diagnostics and targeted fixes for PostgreSQL-specific problems. ## Core Features & Use Cases - Query & Index Optimization: Analyze EXPLAIN output, pg_stat_statements, and buffer hit ratios to fix slow queries, then apply the right index type (B-tree, GIN, GiST, BRIN, partial, expression). - JSONB & Advanced Features: Optimize JSONB containment queries with proper GIN operator classes, implement full-text search with tsvector, and use window functions, recursive CTEs, and UPSERTs. - Operations & Administration: Tune autovacuum, configure PgBouncer connection pooling, set up table partitioning, and monitor streaming replication lag. - Use Case: Your API endpoints are timing out because JSONB queries scan the full table. Use this Skill to identify the missing GIN index with jsonb_path_ops and verify the fix with EXPLAIN ANALYZE. ## Quick Start Ask the assistant to analyze your slow PostgreSQL query and recommend indexes and configuration changes based on your server version and settings.