aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorAndrew Gierth <rhodiumtoad@postgresql.org>2017-07-10 11:40:08 +0100
committerAndrew Gierth <rhodiumtoad@postgresql.org>2017-07-10 11:40:08 +0100
commit1add0b15f117769f619af12720bea2f73d4f7359 (patch)
tree10a07b55e36dec83a5a8070958dede905e27ab2c /src/backend
parent7b02ba62e9ffad5b14c24756a0c2aeae839c9d05 (diff)
downloadpostgresql-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')
-rw-r--r--src/backend/commands/copy.c2
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);
}
}