Avoid referencing off the end of subplan_partition_offsets.

Robert Haas <rhaas@postgresql.org>

Commit: 945f71db845262e7491b5fe4403b01147027576b
Author: Robert Haas <rhaas@postgresql.org>
Date: 2018-01-24T21:34:51Z
Releases: 11.0
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

Files

Discussion