]> granicus.if.org Git - postgresql/commit
Remove surplus call to table_finish_bulk_insert
authorDavid Rowley <drowley@postgresql.org>
Mon, 1 Jul 2019 15:07:15 +0000 (03:07 +1200)
committerDavid Rowley <drowley@postgresql.org>
Mon, 1 Jul 2019 15:07:15 +0000 (03:07 +1200)
commitb2d69806d8cc902802a7b56ba37fb7c55e58b0ed
treebf4333eb779694df651a25e36bea9ea449fa8207
parent4de60244e2fcdeb100afc7f8bf5c28b32923a637
Remove surplus call to table_finish_bulk_insert

4de60244e added the call to table_finish_bulk_insert to the
CopyMultiInsertBufferCleanup function.  We use a CopyMultiInsertBuffer even
for non-partitioned tables, so having the cleanup do that meant we would
call table_finsh_bulk_insert twice when performing COPY FROM with
a non-partitioned table.

Here we can just remove the direct call in CopyFrom and let
CopyMultiInsertBufferCleanup handle the call instead.
src/backend/commands/copy.c