Thread: pgsql: Add tests for error message generation in partition tupleroutin

pgsql: Add tests for error message generation in partition tupleroutin

From
Michael Paquier
Date:
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(+)