What problem does it solve? PostgreSQL databases degrade silently through missing indexes, bloated tables, misconfigured memory, and untuned autovacuum, and diagnosing these issues requires deep operational knowledge scattered across documentation. ## Core Features & Use Cases - Query and Index Optimization: Detect unused, duplicate, and invalid indexes, rewrite SQL anti-patterns like N+1 queries and OFFSET pagination, and tune planner settings for SSD storage. - Operations and Internals Guidance: Configure MVCC/autovacuum, WAL archiving, checkpoints, streaming replication, connection pooling with PgBouncer, and backup/PITR strategies. - PlanetScale Integration: Troubleshoot connections, manage branches and deploy requests via the pscale CLI, and analyze slow queries through Insights and the MCP server. - Use Case: A production database shows rising latency. Load this Skill to find the slow queries in pg_stat_statements, identify a missing composite index, check for long transactions blocking VACUUM, and apply the fix safely. ## Quick Start Ask the assistant to review your PostgreSQL database for slow queries and unused indexes using the postgres skill.