Skip to content

Commit b2d6980

Browse files
committed
Remove surplus call to table_finish_bulk_insert
4de6024 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.
1 parent 4de6024 commit b2d6980

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/backend/commands/copy.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3369,8 +3369,6 @@ CopyFrom(CopyState cstate)
33693369

33703370
if (insertMethod != CIM_SINGLE)
33713371
{
3372-
table_finish_bulk_insert(cstate->rel, ti_options);
3373-
33743372
/* Tear down the multi-insert buffer data */
33753373
CopyMultiInsertInfoCleanup(&multiInsertInfo);
33763374
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy