What problem does it solve? PostgreSQL databases suffer from slow queries, bloated tables, connection exhaustion, and misconfigured replication, and diagnosing these issues requires deep operational knowledge spread across many domains. ## 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. - Operations and Architecture Guidance: Configure VACUUM/autovacuum, WAL archiving, checkpoints, memory allocation, connection pooling with PgBouncer, streaming replication, and backup/PITR strategies. - PlanetScale Integration: Use pscale CLI commands, query insights reports, and PlanetScale-specific connection pooling and extension guidance. - Use Case: When a production database shows rising latency, load this Skill to find slow queries via pg_stat_statements, audit indexes, check for long transactions blocking VACUUM, and apply targeted fixes. ## Quick Start Ask the assistant to review your PostgreSQL database for slow queries and unused indexes using the postgres skill.