pgsql: Add tests for error message generation in partition tuple routin

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add tests for error message generation in partition tuple routin
Date: 2019-05-06 12:45:36
Message-ID: E1hNczw-0006hq-EV@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add tests for error message generation in partition tuple routing

This adds extra tests for the error message generated for partition
tuple routing in the executor, using more than three levels of
partitioning including partitioned tables with no partitions. These
tests have been added to fix CVE-2019-10129 on REL_11_STABLE. HEAD has
no active bugs in this area, but it lacked coverage.

Author: Michael Paquier
Reviewed-by: Noah Misch
Security: CVE-2019-10129

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/91248608a61d5504f8ac46534136de9b3717fed2

Modified Files
--------------
src/test/regress/expected/insert.out | 15 +++++++++++++++
src/test/regress/sql/insert.sql | 7 +++++++
2 files changed, 22 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2019-05-06 13:01:15 pgsql: Translation updates
Previous Message Dean Rasheed 2019-05-06 11:09:09 pgsql: Use checkAsUser for selectivity estimator checks, if it's set.