Range types
Range data types (int4range, tstzrange, CREATE TYPE AS RANGE) with their operators, index support and selectivity estimation. Introduced in PostgreSQL 9.2.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · worked-on · improved · moderate
- PostgreSQL 17 · shipped · improved · moderate · 3 commits · +561 / -15 lines
- PostgreSQL 16 · worked-on · improved · moderate
- PostgreSQL 15 · worked-on · improved · moderate
Threads
- Range hashing can disagree with equality for a custom subtype operator class
- BUG #19793: Range containment with empty/unbounded constant range returns true/false for NULL element
- BUG #19769: int8range() raises an error for an inclusive upper bound at BIGINT_MAX
- ANALYZE-generated NaN range lengths cause 1e100-row estimates
- Implement missing join selectivity estimation for range types
- Should ranges validate their subtypes' domains after canonicalization?
- Typo in range types documentation
- [PATCH] Add support function for containment operators
- Is the subtype_diff function in CREATE TYPE only can be C function?
- pg_stats and range statistics
- range canonicalization function make corner case failed.
- daterange() is ignoring 3rd boundaries argument
- BUG #17473: Custom range type with timestamp doesn't respect precision
- range of composite types!
- Extending range type operators to cope with elements
- [PATCH] Support empty ranges with bounds information
- BUG #16122: segfault pg_detoast_datum (datum=0x0) at fmgr.c:1833 numrange query
- Why 'infinity' is not in range '[2019-01-02, infinity]'?
- Bad canonicalization for dateranges with 'infinity' bounds
- BUG #15675: upper_inf() always returns false for non-null daterange, tstzrange values
- Improve examples for range operators
- Rangejoin rebased