fix upsert core and cross-partition upsert

This commit is contained in:
gentle_hu
2021-07-06 14:13:00 +08:00
parent d9dc69168f
commit 4d2c0d708e
14 changed files with 48 additions and 6 deletions

View File

@ -432,6 +432,7 @@ typedef struct ModifyTable {
List* updateTlist; /* List of UPDATE target */
List* exclRelTlist; /* target list of the EXECLUDED pseudo relation */
Index exclRelRTIndex; /* RTI of the EXCLUDED pseudo relation */
bool partKeyUpsert;
OpMemInfo mem_info; /* Memory info for modify node */
} ModifyTable;

View File

@ -1398,6 +1398,7 @@ typedef struct UpsertExpr {
List* updateTlist; /* List of UPDATE TargetEntrys */
List* exclRelTlist; /* tlist of the 'EXCLUDED' pseudo relation */
int exclRelIndex; /* RT index of 'EXCLUDED' relation */
bool partKeyUpsert; /* we allow upsert index key and partition key in B_FORMAT */
} UpsertExpr;
#endif /* PRIMNODES_H */