postgres-core-version-matrix
Installation
SKILL.md
postgres-core-version-matrix
Quick Reference :
PostgreSQL 15, 16, 17 are all currently supported (v15 EOL 2027-11, v16 EOL 2028-11, v17 EOL 2029-11). Every feature, GUC, and syntax form in any other skill in this package MUST be annotated with the earliest supported version that exposes it. This skill is the authoritative cross-reference.
Three-step decision flow when authoring or reviewing PostgreSQL code :
- Identify the target PostgreSQL major version (or minimum supported version if running fleet has mixed versions).
- Look up each feature in this matrix : if present in all three (v15+v16+v17), no annotation needed. If introduced in v16, annotate
v16+. If only in v17, annotatev17+. - If a feature only exists in v17 but the target is v15 or v16, find the fallback pattern listed in references/methods.md (e.g.
INSERT ... ON CONFLICTinstead ofMERGE ... RETURNING).
Detection : SHOW server_version_num; returns a single integer like 170002 (v17.0.2). Use current_setting('server_version_num')::int >= 170000 in conditional SQL. NEVER parse version() string output (format is unstable).
When To Use This Skill :
ALWAYS use this skill when :