Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb2d6980

Browse files
committed
Remove surplus call to table_finish_bulk_insert
4de6024 added the call to table_finish_bulk_insert to theCopyMultiInsertBufferCleanup function. We use a CopyMultiInsertBuffer evenfor non-partitioned tables, so having the cleanup do that meant we wouldcall table_finsh_bulk_insert twice when performing COPY FROM witha non-partitioned table.Here we can just remove the direct call in CopyFrom and letCopyMultiInsertBufferCleanup handle the call instead.
1 parent4de6024 commitb2d6980

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)

[8]ページ先頭

©2009-2025 Movatter.jp