mirror of https://github.com/citusdata/citus.git
Puts usage of HASH_STRINGS in PG14 version check
parent
5d01cecaf5
commit
3b607ed034
|
@ -138,9 +138,12 @@ ListToHashSet(List *itemList, Size keySize, bool isStringList)
|
||||||
if (!isStringList)
|
if (!isStringList)
|
||||||
{
|
{
|
||||||
flags |= HASH_BLOBS;
|
flags |= HASH_BLOBS;
|
||||||
}else {
|
}
|
||||||
|
#if PG_VERSION_NUM >= PG_VERSION_14
|
||||||
|
else {
|
||||||
flags |= HASH_STRINGS;
|
flags |= HASH_STRINGS;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
HTAB *itemSet = hash_create("ListToHashSet", capacity, &info, flags);
|
HTAB *itemSet = hash_create("ListToHashSet", capacity, &info, flags);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue