use heap_multi_insert for the insert into xxx select yyy query.

fix comment from committer

add test
This commit is contained in:
yuu
2024-01-18 06:14:52 +00:00
parent 38de12c76b
commit 5896a05da4
19 changed files with 113 additions and 7 deletions

View File

@ -69,4 +69,7 @@ extern void ExecComputeStoredGenerated(ResultRelInfo *resultRelInfo, EState *est
extern bool ExecComputeStoredUpdateExpr(ResultRelInfo *resultRelInfo, EState *estate, TupleTableSlot *slot, Tuple tuple,
CmdType cmdtype, ItemPointer otid, Oid oldPartitionOid, int2 bucketid);
extern bool isSingleMode;
extern bool isRestoreMode;
#define ENABLE_HEAP_MULTI_INSERT_FOR_INSERT_SELECT ((!isSingleMode) && (!isRestoreMode) && (u_sess->attr.attr_storage.enable_heap_multi_insert_for_insert_select))
#endif /* NODEMODIFYTABLE_H */