Skip to content

Commit d5e3fe6

Browse files
author
Etsuro Fujita
committed
Update comment in ExecInsert() regarding batch insertion.
Remove the stale text that is a leftover from an earlier version of the patch to add support for batch insertion, and adjust the wording in the remaining text. Back-patch to v14 where batch insertion came in. Review and wording adjustment by Tom Lane. Discussion: https://postgr.es/m/CAPmGK14goatHPHQv2Aeu_UTKqZ%2BBO%2BP%2Bzd3HKv5D%2BdyyfWKDSw%40mail.gmail.com
1 parent 0823d06 commit d5e3fe6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/executor/nodeModifyTable.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,9 +795,8 @@ ExecInsert(ModifyTableContext *context,
795795
if (resultRelInfo->ri_BatchSize > 1)
796796
{
797797
/*
798-
* If a certain number of tuples have already been accumulated, or
799-
* a tuple has come for a different relation than that for the
800-
* accumulated tuples, perform the batch insert
798+
* When we've reached the desired batch size, perform the
799+
* insertion.
801800
*/
802801
if (resultRelInfo->ri_NumSlots == resultRelInfo->ri_BatchSize)
803802
{

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