mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
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
This commit is contained in:
parent
81c094bd93
commit
fc9eb3f0c3
@ -679,9 +679,8 @@ ExecInsert(ModifyTableState *mtstate,
|
|||||||
if (resultRelInfo->ri_BatchSize > 1)
|
if (resultRelInfo->ri_BatchSize > 1)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* If a certain number of tuples have already been accumulated, or
|
* When we've reached the desired batch size, perform the
|
||||||
* a tuple has come for a different relation than that for the
|
* insertion.
|
||||||
* accumulated tuples, perform the batch insert
|
|
||||||
*/
|
*/
|
||||||
if (resultRelInfo->ri_NumSlots == resultRelInfo->ri_BatchSize)
|
if (resultRelInfo->ri_NumSlots == resultRelInfo->ri_BatchSize)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user