PostgreSQL Table Design

•
4
•

Architects high-performance, production-grade PostgreSQL schemas using industry best practices and optimal data typing.

This skill provides a comprehensive framework for designing robust PostgreSQL databases within Claude Code. It guides users through critical architectural decisions, including 3NF normalization, precise data type selection (such as preferring TIMESTAMPTZ and BIGINT), and sophisticated indexing strategies using B-tree, GIN, and GiST. Whether you are building a new application or refactoring an existing one, this skill helps you implement advanced features like Row-Level Security (RLS), declarative partitioning, and JSONB optimization while avoiding common pitfalls such as unindexed foreign keys and silent data coercions.

主要功能

01Declarative partitioning for large-scale time-series and list data
02Guidance on JSONB, Range types, and Row-Level Security implementation
03Strict schema constraints for data integrity and performance
04Advanced indexing strategies for B-tree, GIN, GiST, and BRIN
05Optimal data type selection including BIGINT Identity and TIMESTAMPTZ
064 GitHub stars

使用场景

01Refactoring legacy database structures to improve query performance
02Implementing complex data models using arrays, enums, and geometric types
03Designing scalable backend schemas for high-traffic applications