postgresql/src/test/regress
Alexander Korotkov 6df7a9698b Multirange datatypes
Multiranges are basically sorted arrays of non-overlapping ranges with
set-theoretic operations defined over them.

Since v14, each range type automatically gets a corresponding multirange
datatype.  There are both manual and automatic mechanisms for naming multirange
types.  Once can specify multirange type name using multirange_type_name
attribute in CREATE TYPE.  Otherwise, a multirange type name is generated
automatically.  If the range type name contains "range" then we change that to
"multirange".  Otherwise, we add "_multirange" to the end.

Implementation of multiranges comes with a space-efficient internal
representation format, which evades extra paddings and duplicated storage of
oids.  Altogether this format allows fetching a particular range by its index
in O(n).

Statistic gathering and selectivity estimation are implemented for multiranges.
For this purpose, stored multirange is approximated as union range without gaps.
This field will likely need improvements in the future.

Catversion is bumped.

Discussion: https://postgr.es/m/CALNJ-vSUpQ_Y%3DjXvTxt1VYFztaBSsWVXeF1y6gTYQ4bOiWDLgQ%40mail.gmail.com
Discussion: https://postgr.es/m/a0b8026459d1e6167933be2104a6174e7d40d0ab.camel%40j-davis.com#fe7218c83b08068bfffb0c5293eceda0
Author: Paul Jungwirth, revised by me
Reviewed-by: David Fetter, Corey Huinker, Jeff Davis, Pavel Stehule
Reviewed-by: Alvaro Herrera, Tom Lane, Isaac Morland, David G. Johnston
Reviewed-by: Zhihong Yu, Alexander Korotkov
2020-12-20 07:20:33 +03:00
..
data
expected Multirange datatypes 2020-12-20 07:20:33 +03:00
input Clean up ancient test style 2020-12-15 22:03:39 +01:00
output Clean up ancient test style 2020-12-15 22:03:39 +01:00
sql Multirange datatypes 2020-12-20 07:20:33 +03:00
.gitignore
GNUmakefile
Makefile
parallel_schedule Multirange datatypes 2020-12-20 07:20:33 +03:00
pg_regress_main.c
pg_regress.c Rethink API for pg_get_line.c, one more time. 2020-09-22 15:55:13 -04:00
pg_regress.h Remove arbitrary line length limits in pg_regress (plain and ECPG). 2020-09-06 14:13:19 -04:00
README
regress.c Choose ppc compare_exchange constant path for more operand values. 2020-10-11 21:31:37 -07:00
regressplans.sh
resultmap
serial_schedule Multirange datatypes 2020-12-20 07:20:33 +03:00
standby_schedule

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".