Fix COPY's handling of transition tables with indexes.

Andrew Gierth <rhodiumtoad@postgresql.org>

Commit: 1add0b15f117769f619af12720bea2f73d4f7359
Author: Andrew Gierth <rhodiumtoad@postgresql.org>
Date: 2017-07-10T10:40:08Z
Releases: 10.0
Fix COPY's handling of transition tables with indexes.

Commit c46c0e5202e8cfe750c6629db7852fdb15d528f3 failed to pass the
TransitionCaptureState object to ExecARInsertTriggers() in the case
where it's using heap_multi_insert and there are indexes.  Repair.

Thomas Munro, from a report by David Fetter
Discussion: https://postgr.es/m/20170708084213.GA14720%40fetter.org

Files

Discussion