mirror of https://github.com/citusdata/citus.git
Introduces index_insert_compat macro
index_insert function now has a new parameter, indexUnchanged This new macro give us the ability to use these new parameter for PG14 and they don't give the parameters for previous versions Existing parameter is set to false Relevant PG commit: 9dc718bdf2b1a574481a45624d42b674332e2903pull/5209/head
parent
fd2ca2825b
commit
b21a00e775
|
@ -1653,8 +1653,8 @@ ColumnarReadMissingRowsIntoIndex(TableScanDesc scan, Relation indexRelation,
|
|||
Relation columnarRelation = scan->rs_rd;
|
||||
IndexUniqueCheck indexUniqueCheck =
|
||||
indexInfo->ii_Unique ? UNIQUE_CHECK_YES : UNIQUE_CHECK_NO;
|
||||
index_insert(indexRelation, indexValues, indexNulls, columnarItemPointer,
|
||||
columnarRelation, indexUniqueCheck, indexInfo);
|
||||
index_insert_compat(indexRelation, indexValues, indexNulls, columnarItemPointer,
|
||||
columnarRelation, indexUniqueCheck, false, indexInfo);
|
||||
|
||||
validateIndexState->tups_inserted += 1;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
GetOldestNonRemovableTransactionId(a)
|
||||
#define ExecSimpleRelationInsert_compat(a, b, c) \
|
||||
ExecSimpleRelationInsert(a, b, c)
|
||||
#define index_insert_compat(a, b, c, d, e, f, g, h) \
|
||||
index_insert(a, b, c, d, e, f, g, h)
|
||||
#else
|
||||
#define ColumnarProcessUtility_compat(a, b, c, d, e, f, g, h) \
|
||||
ColumnarProcessUtility(a, b, d, e, f, g, h)
|
||||
|
@ -29,6 +31,8 @@
|
|||
#define GetOldestNonRemovableTransactionId_compat(a, b) GetOldestXmin(a, b)
|
||||
#define ExecSimpleRelationInsert_compat(a, b, c) \
|
||||
ExecSimpleRelationInsert(b, c)
|
||||
#define index_insert_compat(a, b, c, d, e, f, g, h) \
|
||||
index_insert(a, b, c, d, e, f, h)
|
||||
#endif
|
||||
|
||||
#define ACLCHECK_OBJECT_TABLE OBJECT_TABLE
|
||||
|
|
Loading…
Reference in New Issue