What problem does it solve?
This Skill helps database professionals optimize PostgreSQL performance by analyzing slow queries, designing indexes, tuning maintenance, and configuring replication for reliable and scalable systems.
Core Features & Use Cases
- Query analysis & plan optimization: Use EXPLAIN ANALYZE to identify bottlenecks and verify performance improvements.
- Index design & tuning: Create and tune B-tree, GIN, GiST, and BRIN indexes for common access patterns, including partial and covering indexes.
- JSONB optimization & maintenance: Optimize JSONB queries and manage maintenance tasks to keep workloads responsive, with replication and backups in mind.
- Replication & high availability: Establish and validate primary/standby configurations to support read scaling and failover.
- Use Case: When a production database experiences slow report generation, apply recommended indexing and query refactoring to reduce latency.
Quick Start
Provide a slow-running query and I will analyze its plan with EXPLAIN ANALYZE and propose indexing and tuning steps.