mirror of https://github.com/citusdata/citus.git
Introduces GetOldestNonRemovableTransactionId_compat macro
GetOldestXmin function is removed so we use GetOldestNonRemovableTransactionId functions instead GetOldestNonRemovableTransactionId_compat picks the appropriate one Relevant PG commit: dc7420c2c9274a283779ec19718d2d16323640c0pull/5209/head
parent
cb3b76ed24
commit
b644ac55c6
|
@ -1306,7 +1306,8 @@ columnar_index_build_range_scan(Relation columnarRelation,
|
||||||
if (!IsBootstrapProcessingMode() && !indexInfo->ii_Concurrent)
|
if (!IsBootstrapProcessingMode() && !indexInfo->ii_Concurrent)
|
||||||
{
|
{
|
||||||
/* ignore lazy VACUUM's */
|
/* ignore lazy VACUUM's */
|
||||||
OldestXmin = GetOldestXmin(columnarRelation, PROCARRAY_FLAGS_VACUUM);
|
OldestXmin = GetOldestNonRemovableTransactionId_compat(columnarRelation,
|
||||||
|
PROCARRAY_FLAGS_VACUUM);
|
||||||
}
|
}
|
||||||
|
|
||||||
Snapshot snapshot = { 0 };
|
Snapshot snapshot = { 0 };
|
||||||
|
|
|
@ -17,11 +17,14 @@
|
||||||
ColumnarProcessUtility(a, b, c, d, e, f, g, h)
|
ColumnarProcessUtility(a, b, c, d, e, f, g, h)
|
||||||
#define PrevProcessUtilityHook_compat(a, b, c, d, e, f, g, h) \
|
#define PrevProcessUtilityHook_compat(a, b, c, d, e, f, g, h) \
|
||||||
PrevProcessUtilityHook(a, b, c, d, e, f, g, h)
|
PrevProcessUtilityHook(a, b, c, d, e, f, g, h)
|
||||||
|
#define GetOldestNonRemovableTransactionId_compat(a, b) \
|
||||||
|
GetOldestNonRemovableTransactionId(a)
|
||||||
#else
|
#else
|
||||||
#define ColumnarProcessUtility_compat(a, b, c, d, e, f, g, h) \
|
#define ColumnarProcessUtility_compat(a, b, c, d, e, f, g, h) \
|
||||||
ColumnarProcessUtility(a, b, d, e, f, g, h)
|
ColumnarProcessUtility(a, b, d, e, f, g, h)
|
||||||
#define PrevProcessUtilityHook_compat(a, b, c, d, e, f, g, h) \
|
#define PrevProcessUtilityHook_compat(a, b, c, d, e, f, g, h) \
|
||||||
PrevProcessUtilityHook(a, b, d, e, f, g, h)
|
PrevProcessUtilityHook(a, b, d, e, f, g, h)
|
||||||
|
#define GetOldestNonRemovableTransactionId_compat(a, b) GetOldestXmin(a, b)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ACLCHECK_OBJECT_TABLE OBJECT_TABLE
|
#define ACLCHECK_OBJECT_TABLE OBJECT_TABLE
|
||||||
|
|
Loading…
Reference in New Issue