diff options
author | Etsuro Fujita <efujita@postgresql.org> | 2022-09-29 16:55:03 +0900 |
---|---|---|
committer | Etsuro Fujita <efujita@postgresql.org> | 2022-09-29 16:55:03 +0900 |
commit | fc9eb3f0c382dee11099ff400ff29f4b0132f16b (patch) | |
tree | 9b7334bd6d89d9ca5a774338e0aa0a56dcef50b7 /src/backend/executor/nodeModifyTable.c | |
parent | 81c094bd93763f76190c2a78e13cae03e15b7432 (diff) | |
download | postgresql-fc9eb3f0c382dee11099ff400ff29f4b0132f16b.tar.gz postgresql-fc9eb3f0c382dee11099ff400ff29f4b0132f16b.zip |
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
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
-rw-r--r-- | src/backend/executor/nodeModifyTable.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c index 1e79d18bf35..ac9ff46cb47 100644 --- a/src/backend/executor/nodeModifyTable.c +++ b/src/backend/executor/nodeModifyTable.c @@ -679,9 +679,8 @@ ExecInsert(ModifyTableState *mtstate, if (resultRelInfo->ri_BatchSize > 1) { /* - * If a certain number of tuples have already been accumulated, or - * a tuple has come for a different relation than that for the - * accumulated tuples, perform the batch insert + * When we've reached the desired batch size, perform the + * insertion. */ if (resultRelInfo->ri_NumSlots == resultRelInfo->ri_BatchSize) { |