mirror of https://github.com/citusdata/citus.git
Remove useless pg version checks (#4741)
parent
dbb88f6f8b
commit
495096ef5e
|
@ -578,7 +578,6 @@ SelectedChunkMask(StripeSkipList *stripeSkipList, List *projectedColumnList,
|
|||
Node *baseConstraint = BuildBaseConstraint(column);
|
||||
for (chunkIndex = 0; chunkIndex < stripeSkipList->chunkCount; chunkIndex++)
|
||||
{
|
||||
bool predicateRefuted = false;
|
||||
ColumnChunkSkipNode *chunkSkipNodeArray =
|
||||
stripeSkipList->chunkSkipNodeArray[columnIndex];
|
||||
ColumnChunkSkipNode *chunkSkipNode = &chunkSkipNodeArray[chunkIndex];
|
||||
|
@ -596,12 +595,8 @@ SelectedChunkMask(StripeSkipList *stripeSkipList, List *projectedColumnList,
|
|||
chunkSkipNode->maximumValue);
|
||||
|
||||
List *constraintList = list_make1(baseConstraint);
|
||||
#if (PG_VERSION_NUM >= 100000)
|
||||
predicateRefuted = predicate_refuted_by(constraintList, restrictInfoList,
|
||||
false);
|
||||
#else
|
||||
predicateRefuted = predicate_refuted_by(constraintList, restrictInfoList);
|
||||
#endif
|
||||
bool predicateRefuted =
|
||||
predicate_refuted_by(constraintList, restrictInfoList, false);
|
||||
if (predicateRefuted && selectedChunkMask[chunkIndex])
|
||||
{
|
||||
selectedChunkMask[chunkIndex] = false;
|
||||
|
|
|
@ -14,23 +14,10 @@
|
|||
#ifndef COLUMNAR_COMPAT_H
|
||||
#define COLUMNAR_COMPAT_H
|
||||
|
||||
#if PG_VERSION_NUM < 100000
|
||||
|
||||
/* Accessor for the i'th attribute of tupdesc. */
|
||||
#define TupleDescAttr(tupdesc, i) ((tupdesc)->attrs[(i)])
|
||||
|
||||
#endif
|
||||
|
||||
#if PG_VERSION_NUM < 110000
|
||||
#define ALLOCSET_DEFAULT_SIZES ALLOCSET_DEFAULT_MINSIZE, ALLOCSET_DEFAULT_INITSIZE, \
|
||||
ALLOCSET_DEFAULT_MAXSIZE
|
||||
#define ACLCHECK_OBJECT_TABLE ACL_KIND_CLASS
|
||||
#else
|
||||
#define ACLCHECK_OBJECT_TABLE OBJECT_TABLE
|
||||
|
||||
#define ExplainPropertyLong(qlabel, value, es) \
|
||||
ExplainPropertyInteger(qlabel, NULL, value, es)
|
||||
#endif
|
||||
|
||||
#if PG_VERSION_NUM < 120000
|
||||
#define TTS_EMPTY(slot) ((slot)->tts_isempty)
|
||||
|
|
Loading…
Reference in New Issue