pgsql: Enforce cube dimension limit in all cube construction functions

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Enforce cube dimension limit in all cube construction functions
Дата
Msg-id E1fvn96-0000MF-Gl@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/29e07cd224717fd11be7071166d9f08f8b44f1f2

Modified Files
--------------
contrib/cube/cube.c            | 34 ++++++++++++++++++++++++++++++++++
contrib/cube/expected/cube.out | 40 ++++++++++++++++++++++++++++++++++++++++
contrib/cube/sql/cube.sql      | 20 +++++++++++++++++++-
3 files changed, 93 insertions(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Enforce cube dimension limit in all cube construction functions
Следующее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Split contrib/cube platform-depended checks into separate test