postgresql/contrib/cube
Alexander Korotkov f919c165eb Enforce cube dimension limit in all cube construction functions
contrib/cube has a limit to 100 dimensions for cube datatype.  However, it's
not enforced everywhere, and one can actually construct cube with more than
100 dimensions having then trouble with dump/restore.  This commit add checks
for dimensions limit in all functions responsible for cube construction.
Backpatch to all supported versions.

Reported-by: Andrew Gierth
Discussion: https://postgr.es/m/87va7uybt4.fsf%40news-spur.riddles.org.uk
Author: Andrey Borodin with small additions by me
Review: Tom Lane
Backpatch-through: 9.3
2018-08-31 20:24:48 +03:00
..
data
expected Enforce cube dimension limit in all cube construction functions 2018-08-31 20:24:48 +03:00
sql Enforce cube dimension limit in all cube construction functions 2018-08-31 20:24:48 +03:00
.gitignore
CHANGES
cube--1.0--1.1.sql
cube--1.1--1.2.sql
cube--1.2--1.3.sql Distinguish selectivity of < from <= and > from >=. 2017-09-13 11:12:39 -04:00
cube--1.2.sql
cube--1.3--1.4.sql Support index-only scans in contrib/cube and contrib/seg GiST indexes. 2017-11-20 20:25:18 -05:00
cube--unpackaged--1.0.sql
cube.c Enforce cube dimension limit in all cube construction functions 2018-08-31 20:24:48 +03:00
cube.control Support index-only scans in contrib/cube and contrib/seg GiST indexes. 2017-11-20 20:25:18 -05:00
cubedata.h Make DatumGetFoo/PG_GETARG_FOO/PG_RETURN_FOO macro names more consistent. 2017-09-18 15:21:23 -04:00
cubeparse.y Provide separate header file for built-in float types 2018-07-29 03:30:48 +02:00
cubescan.l Exclude flex-generated code from coverage testing 2017-10-16 16:28:11 -04:00
Makefile Split contrib/cube platform-depended checks into separate test 2018-08-31 20:24:48 +03:00