From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Enforce cube dimension limit in all cube construction functions
Date: Fri, 31 Aug 2018 17:22:51 +0000
Message-ID: <E1fvn8F-0000Ky-0C@gemulon.postgresql.org> (raw)
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
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/5fed7b24aed50a50e2e922de2bcc51458a067210
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: akorotkov@postgresql.org
Subject: Re: pgsql: Enforce cube dimension limit in all cube construction functions
In-Reply-To: <E1fvn8F-0000Ky-0C@gemulon.postgresql.org>
References: <E1fvn8F-0000Ky-0C@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox