postgresql/contrib/btree_gin
Dean Rasheed 519fc1bd9e Support +/- infinity in the interval data type.
This adds support for infinity to the interval data type, using the
same input/output representation as the other date/time data types
that support infinity. This allows various arithmetic operations on
infinite dates, timestamps and intervals.

The new values are represented by setting all fields of the interval
to INT32/64_MIN for -infinity, and INT32/64_MAX for +infinity. This
ensures that they compare as less/greater than all other interval
values, without the need for any special-case comparison code.

Note that, since those 2 values were formerly accepted as legal finite
intervals, pg_upgrade and dump/restore from an old database will turn
them from finite to infinite intervals. That seems OK, since those
exact values should be extremely rare in practice, and they are
outside the documented range supported by the interval type, which
gives us a certain amount of leeway.

Bump catalog version.

Joseph Koshakow, Jian He, and Ashutosh Bapat, reviewed by me.

Discussion: https://postgr.es/m/CAAvxfHea4%2BsPybKK7agDYOMo9N-Z3J6ZXf3BOM79pFsFNcRjwA%40mail.gmail.com
2023-11-14 10:58:49 +00:00
..
expected btree_gin: Fix calculation of leftmost interval value. 2023-10-29 11:14:37 +00:00
sql btree_gin: Fix calculation of leftmost interval value. 2023-10-29 11:14:37 +00:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Remove support for upgrading extensions from "unpackaged" state. 2020-02-19 16:59:14 -05:00
btree_gin--1.0--1.1.sql Add support for EUI-64 MAC addresses as macaddr8 2017-03-15 11:16:25 -04:00
btree_gin--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:03 -04:00
btree_gin--1.1--1.2.sql Add btree_gin support for enum types 2017-03-21 11:04:17 -04:00
btree_gin--1.2--1.3.sql Add support of bool, bpchar, name and uuid to btree_gin 2018-04-05 18:19:10 +03:00
btree_gin.c Support +/- infinity in the interval data type. 2023-11-14 10:58:49 +00:00
btree_gin.control Mark some contrib modules as "trusted". 2020-02-13 15:02:35 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00