Fix COPY's handling of transition tables with indexes.
Andrew Gierth <rhodiumtoad@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/copy.c | modified | +1 −1 |
| src/test/regress/expected/triggers.out | modified | +6 −1 |
| src/test/regress/sql/triggers.sql | modified | +7 −0 |
Discussion
- COPY vs. transition tables 6 messages · 2017-07-08 → 2017-07-10