Fix partitioning crashes during error reporting.

Robert Haas <rhaas@postgresql.org>

Commit: 4132dbec69dd4d437e132e57a74a98a40cdcf776
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-07-24T22:08:08Z
Releases: 10.0
Fix partitioning crashes during error reporting.

In various places where we reverse-map a tuple before calling
ExecBuildSlotValueDescription, we neglected to ensure that the
slot descriptor matched the tuple stored in it.

Amit Langote and Amit Khandekar, reviewed by Etsuro Fujita

Discussion: http://postgr.es/m/CAJ3gD9cqpP=WvJj=dv1ONkPWjy8ZuUaOM4_x86i3uQPas=0_jg@mail.gmail.com

Files

Discussion