diff options
author | Andrew Gierth <rhodiumtoad@postgresql.org> | 2017-07-10 11:40:08 +0100 |
---|---|---|
committer | Andrew Gierth <rhodiumtoad@postgresql.org> | 2017-07-10 11:40:08 +0100 |
commit | 1add0b15f117769f619af12720bea2f73d4f7359 (patch) | |
tree | 10a07b55e36dec83a5a8070958dede905e27ab2c /src/backend/commands/copy.c | |
parent | 7b02ba62e9ffad5b14c24756a0c2aeae839c9d05 (diff) | |
download | postgresql-1add0b15f117769f619af12720bea2f73d4f7359.tar.gz postgresql-1add0b15f117769f619af12720bea2f73d4f7359.zip |
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
Diffstat (limited to 'src/backend/commands/copy.c')
-rw-r--r-- | src/backend/commands/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index f391828e74f..fc5f4f66ead 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -2915,7 +2915,7 @@ CopyFromInsertBatch(CopyState cstate, EState *estate, CommandId mycid, estate, false, NULL, NIL); ExecARInsertTriggers(estate, resultRelInfo, bufferedTuples[i], - recheckIndexes, NULL); + recheckIndexes, cstate->transition_capture); list_free(recheckIndexes); } } |