Designs optimized PostgreSQL-specific database schemas using best practices for indexing, data types, and high-performance patterns.
This skill empowers Claude to act as a senior database architect specializing in PostgreSQL. It provides comprehensive guidance on designing robust schemas, selecting precise data types (such as BIGINT Identity and TIMESTAMPTZ), and implementing advanced features like Row-Level Security (RLS) and declarative partitioning. By enforcing standards like 3NF normalization and manual foreign key indexing, it helps developers build scalable, maintainable architectures while avoiding common pitfalls like case-sensitive identifiers, inefficient storage types, and MVCC-related bloat.
Key Features
01Identification of common PostgreSQL 'gotchas' like identifier casing and NULL handling
02Enforcement of best practices for normalization, constraints, and migration safety
03Advanced performance patterns for partitioning, Row-Level Security (RLS), and TOAST storage
04PostgreSQL-specific data type selection including JSONB, Identity columns, and Range types