Progress adding SQL:2011 valid time to Postgres
summary
Adds a new multi-range type (canonicalized sequences of non-touching ranges, with per-type multiranges created automatically) and a range_ag aggregate for rolling up ranges; implements SQL:2011 valid-time features by mapping PERIODs to built-in ranges, adds temporal primary keys as exclusion constraints using GiST + overlaps, temporal foreign keys that validate by aggregating parent ranges, and temporal UPDATE/DELETE that splits ranges, inserts leftover slices, and fires insert triggers; work-in-progress: planner selectivity stats, executor vs trigger placement, bison interval shift/reduce and infinity vs NULL sentinel choices.
AI-written summary · about
