What problem does it solve?
This Skill helps you optimize PostgreSQL databases, configure replication, and implement advanced features like EXPLAIN analysis, JSONB operations, and VACUUM tuning.
Core Features & Use Cases
- Query Optimization: Analyze and optimize slow queries with EXPLAIN.
- JSONB Operations: Implement JSONB storage and indexing strategies.
- Replication Configuration: Set up streaming or logical replication.
- Extension Usage: Configure and use PostgreSQL extensions like PostGIS and pgvector.
- VACUUM Tuning: Fine-tune VACUUM, ANALYZE, and autovacuum for performance.
- Monitoring: Monitor database health with pg_stat views.
- Use Case: For example, you can use this Skill to identify and optimize slow queries in your PostgreSQL database, configure a streaming replication setup, or tune the VACUUM process to prevent table bloat.
Quick Start
Run the following SQL command to analyze the slowest query in your database: SELECT query, mean_exec_time, calls FROM pg_stat_statements ORDER BY mean_exec_time DESC LIMIT 1;