Add tests for error message generation in partition tuple routing
authorMichael Paquier <[email protected]>
Mon, 6 May 2019 12:44:24 +0000 (21:44 +0900)
committerMichael Paquier <[email protected]>
Mon, 6 May 2019 12:44:24 +0000 (21:44 +0900)
commit91248608a61d5504f8ac46534136de9b3717fed2
treeb92a57276ca2daa108f4389986d1048f8169d82f
parenta0905056fd6b0927dd33f185adc9e7503515fc0d
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
src/test/regress/expected/insert.out
src/test/regress/sql/insert.sql