What problem does it solve?
This Skill provides comprehensive guidance to improve PostgreSQL database performance, reliability, and security through best practices in schema design, indexing, query optimization, and administration.
Core Features & Use Cases
- Schema Design: Guidance on data types, table structures, and partitioning for efficient data storage.
- Indexing Strategies: Best practices for choosing and maintaining indexes to speed up queries.
- Query Optimization: Techniques like
EXPLAIN ANALYZE, CTEs, and window functions for efficient data retrieval.
- JSONB Optimization: Specific advice for leveraging and indexing JSONB data.
- Connection & Transaction Management: Recommendations for pooling, isolation levels, and locking.
- Maintenance & Security: Best practices for vacuuming, backups, SSL, RLS, and role-based access control.
- Use Case: A developer struggling with slow database queries can consult this Skill to understand how to analyze query plans, add appropriate indexes, and refactor their SQL for better performance.
Quick Start
Use the postgresql-best-practices skill to learn about optimizing JSONB queries.