PostgreSQL Knowledge Patch

•
24
•

Applies modern PostgreSQL capabilities, breaking change mitigations, and performance best practices beyond standard model knowledge cutoffs.

The PostgreSQL Knowledge Patch updates Claude Code with modern PostgreSQL features, syntax additions, and operational practices that postdate typical LLM knowledge cutoffs. It equips developers and database administrators with immediate guidance on breaking migration changes—such as default data checksums and virtual generated columns—alongside new SQL primitives like native UUIDv7, temporal keys, differential RETURNING clauses, SQL/JSON standards, incremental physical backups with pg_combinebackup, and failover-synchronized logical replication. This skill is essential when planning database version upgrades, tuning query plans with enhanced EXPLAIN metrics, hardening TLS/OAuth client connections, or designing modern relational schemas.

主要功能

01Implements modern SQL primitives including native UUIDv7, temporal constraints with WITHOUT OVERLAPS, and old/new RETURNING
02Guides SQL/JSON standards adoption using JSON_EXISTS, JSON_VALUE, JSON_QUERY, and JSON_TABLE projections
03Identifies breaking upgrade changes including default checksums, inheritance vacuuming, and deprecated MD5 authentication
0424 GitHub stars
05Configures incremental physical backups using WAL summaries, pg_basebackup, and pg_combinebackup
06Optimizes logical replication across failovers with synchronized standby slots and asynchronous I/O tuning

使用场景

01Designing robust relational schemas leveraging native UUIDv7 identifiers, temporal valid ranges, and virtual generated columns
02Upgrading legacy PostgreSQL database clusters to modern versions while preventing catalog, collation, and authentication breakages
03Configuring resilient backup and high-availability replication topologies with incremental backups and failover-ready subscription slots