PostgreSQL Schema Design
Designs high-performance, production-grade PostgreSQL database schemas with optimal data types, indexing strategies, and constraints.
The PostgreSQL Schema Design skill equips Claude with expert-level knowledge for architecting robust, scalable, and idiomatic PostgreSQL databases. It enforces best practices across data type selection (e.g., TIMESTAMPTZ, NUMERIC, UUIDv7, JSONB), constraint enforcement, normalization, and foreign key handling. It also provides advanced guidance for specialized indexing strategies (B-tree, GIN, GiST, BRIN, partial, and covering indexes), table partitioning, row-level security (RLS), and tuning for update-heavy or insert-heavy workloads to prevent common PostgreSQL pitfalls like heap bloat and unindexed foreign keys.