!3855 修复一级分区ustore表exchange partition后,update数据失败
Merge pull request !3855 from duzhuolin/bugfix_Q9
This commit is contained in:
@ -6590,10 +6590,8 @@ void ScanPartitionInsertIndex(Relation partTableRel, Relation partRel, const Lis
|
|||||||
ListCell* cell = NULL;
|
ListCell* cell = NULL;
|
||||||
ListCell* cell1 = NULL;
|
ListCell* cell1 = NULL;
|
||||||
EState* estate = NULL;
|
EState* estate = NULL;
|
||||||
TupleDesc tupleDesc = NULL;
|
|
||||||
TupleTableSlot* slot = NULL;
|
TupleTableSlot* slot = NULL;
|
||||||
|
|
||||||
tupleDesc = partRel->rd_att;
|
|
||||||
|
|
||||||
if (PointerIsValid(indexRelList)) {
|
if (PointerIsValid(indexRelList)) {
|
||||||
estate = CreateExecutorState();
|
estate = CreateExecutorState();
|
||||||
@ -6614,8 +6612,9 @@ void ScanPartitionInsertIndex(Relation partTableRel, Relation partRel, const Lis
|
|||||||
Relation indexRel = (Relation)lfirst(cell);
|
Relation indexRel = (Relation)lfirst(cell);
|
||||||
IndexInfo* indexInfo = static_cast<IndexInfo*>(lfirst(cell1));
|
IndexInfo* indexInfo = static_cast<IndexInfo*>(lfirst(cell1));
|
||||||
|
|
||||||
Datum values[tupleDesc->natts];
|
Datum values[INDEX_MAX_KEYS];
|
||||||
bool isNull[tupleDesc->natts];
|
bool isNull[INDEX_MAX_KEYS];
|
||||||
|
|
||||||
bool estateIsNotNull = false;
|
bool estateIsNotNull = false;
|
||||||
ItemPointer t_ctid = tableam_tops_get_t_self(partTableRel, tuple);
|
ItemPointer t_ctid = tableam_tops_get_t_self(partTableRel, tuple);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user