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);
|
Node *baseConstraint = BuildBaseConstraint(column);
|
||||||
for (chunkIndex = 0; chunkIndex < stripeSkipList->chunkCount; chunkIndex++)
|
for (chunkIndex = 0; chunkIndex < stripeSkipList->chunkCount; chunkIndex++)
|
||||||
{
|
{
|
||||||
bool predicateRefuted = false;
|
|
||||||
ColumnChunkSkipNode *chunkSkipNodeArray =
|
ColumnChunkSkipNode *chunkSkipNodeArray =
|
||||||
stripeSkipList->chunkSkipNodeArray[columnIndex];
|
stripeSkipList->chunkSkipNodeArray[columnIndex];
|
||||||
ColumnChunkSkipNode *chunkSkipNode = &chunkSkipNodeArray[chunkIndex];
|
ColumnChunkSkipNode *chunkSkipNode = &chunkSkipNodeArray[chunkIndex];
|
||||||
|
@ -596,12 +595,8 @@ SelectedChunkMask(StripeSkipList *stripeSkipList, List *projectedColumnList,
|
||||||
chunkSkipNode->maximumValue);
|
chunkSkipNode->maximumValue);
|
||||||
|
|
||||||
List *constraintList = list_make1(baseConstraint);
|
List *constraintList = list_make1(baseConstraint);
|
||||||
#if (PG_VERSION_NUM >= 100000)
|
bool predicateRefuted =
|
||||||
predicateRefuted = predicate_refuted_by(constraintList, restrictInfoList,
|
predicate_refuted_by(constraintList, restrictInfoList, false);
|
||||||
false);
|
|
||||||
#else
|
|
||||||
predicateRefuted = predicate_refuted_by(constraintList, restrictInfoList);
|
|
||||||
#endif
|
|
||||||
if (predicateRefuted && selectedChunkMask[chunkIndex])
|
if (predicateRefuted && selectedChunkMask[chunkIndex])
|
||||||
{
|
{
|
||||||
selectedChunkMask[chunkIndex] = false;
|
selectedChunkMask[chunkIndex] = false;
|
||||||
|
|
|
@ -14,23 +14,10 @@
|
||||||
#ifndef COLUMNAR_COMPAT_H
|
#ifndef COLUMNAR_COMPAT_H
|
||||||
#define 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 ACLCHECK_OBJECT_TABLE OBJECT_TABLE
|
||||||
|
|
||||||
#define ExplainPropertyLong(qlabel, value, es) \
|
#define ExplainPropertyLong(qlabel, value, es) \
|
||||||
ExplainPropertyInteger(qlabel, NULL, value, es)
|
ExplainPropertyInteger(qlabel, NULL, value, es)
|
||||||
#endif
|
|
||||||
|
|
||||||
#if PG_VERSION_NUM < 120000
|
#if PG_VERSION_NUM < 120000
|
||||||
#define TTS_EMPTY(slot) ((slot)->tts_isempty)
|
#define TTS_EMPTY(slot) ((slot)->tts_isempty)
|
||||||
|
|
Loading…
Reference in New Issue