What problem does it solve?
This Skill helps developers and database administrators optimize their PostgreSQL database schemas, queries, and configurations to improve performance, security, and maintainability.
Core Features & Use Cases
- Indexing Strategies: Provides guidance on creating effective B-tree, GIN, BRIN, and composite indexes.
- Data Type Selection: Recommends appropriate data types for various use cases to ensure data integrity and efficiency.
- Pattern Implementation: Demonstrates best practices for common SQL patterns like UPSERT, cursor pagination, and queue processing.
- Anti-Pattern Detection: Includes SQL queries to identify common performance pitfalls such as unindexed foreign keys and table bloat.
- Configuration Tuning: Offers a template for essential PostgreSQL configuration parameters.
Quick Start
Use the postgres-patterns skill to generate an optimized index for a table with a JSONB column.