Avoid referencing off the end of subplan_partition_offsets.
authorRobert Haas <rhaas@postgresql.org>
Wed, 24 Jan 2018 21:34:51 +0000 (16:34 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 24 Jan 2018 21:34:51 +0000 (16:34 -0500)
commit945f71db845262e7491b5fe4403b01147027576b
tree341d3e9391c0182f588718c66881aa680e71f46f
parentd6ab7203607a3f43fe41d384f46c15bdac68d745
Avoid referencing off the end of subplan_partition_offsets.

Report by buildfarm member skink and Tom Lane.  Analysis by me.
Patch by Amit Khandekar.

Discussion: http://postgr.es/m/CAJ3gD9fVA1iXQYhfqHP5n_TEd4U9=V8TL_cc-oKRnRmxgdvJrQ@mail.gmail.com
src/backend/executor/execPartition.c
src/backend/executor/nodeModifyTable.c
src/include/executor/execPartition.h