]> granicus.if.org Git - postgresql/commit
Fix COPY's handling of transition tables with indexes.
authorAndrew Gierth <rhodiumtoad@postgresql.org>
Mon, 10 Jul 2017 10:40:08 +0000 (11:40 +0100)
committerAndrew Gierth <rhodiumtoad@postgresql.org>
Mon, 10 Jul 2017 10:40:08 +0000 (11:40 +0100)
commit1add0b15f117769f619af12720bea2f73d4f7359
tree10a07b55e36dec83a5a8070958dede905e27ab2c
parent7b02ba62e9ffad5b14c24756a0c2aeae839c9d05
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
src/backend/commands/copy.c
src/test/regress/expected/triggers.out
src/test/regress/sql/triggers.sql