What problem does it solve? Slow queries, table bloat, replication lag, and misconfigured autovacuum degrade PostgreSQL performance, and diagnosing them requires deep knowledge of EXPLAIN plans, index types, and pg_stat views. ## Core Features & Use Cases - Query Optimization: Analyze slow queries with EXPLAIN (ANALYZE, BUFFERS), design B-tree, GIN, GiST, or BRIN indexes, and verify planner behavior before and after changes. - JSONB and Extensions: Implement JSONB containment queries with GIN indexing, and configure extensions like PostGIS, pgvector, pg_trgm, pg_stat_statements, and timescaledb. - Replication and Maintenance: Set up streaming or logical replication, monitor lag via pg_stat_replication, tune autovacuum per table, and detect bloat. - Use Case: A dashboard query scans a 10M-row orders table sequentially. Use this Skill to identify the Seq Scan in EXPLAIN output, create a partial index with CREATE INDEX CONCURRENTLY, and verify the plan switches to an Index Scan. ## Quick Start Ask the assistant to analyze a slow PostgreSQL query with EXPLAIN ANALYZE and recommend an index with verification steps.