What problem does it solve?
This Skill provides comprehensive guidance and tools for designing, optimizing, and operating PostgreSQL databases, ensuring high performance, reliability, and scalability.
Core Features & Use Cases
- Schema Design & Migrations: Best practices for creating normalized schemas and managing database changes with Alembic.
- Query Optimization: Techniques for analyzing and improving slow queries using
EXPLAIN ANALYZE and indexing strategies.
- Database Engineering: Guidance on replication, high availability, backup/recovery, and performance tuning.
- Use Case: A developer needs to optimize a slow-running report query. They can use this Skill to analyze the query plan, identify missing indexes, and implement the necessary changes for significant performance gains.
Quick Start
Use the postgres skill to analyze the performance of the query 'SELECT * FROM orders WHERE created_at > NOW() - INTERVAL '1 day''.