mirror of https://github.com/citusdata/citus.git
Use HASH_STRINGS explicitly in hash functions
Postgres expects to set the HASH_STRINGS explicitly in case of the default behaivor for string hash function. Postgres Commit b3817f5f774663d55931dd4fab9c5a94a15ae7abpg14_support_after_rebase
parent
c18ab06965
commit
8d6c5d1fb9
|
@ -132,7 +132,7 @@ columnar_init_write_state(Relation relation, TupleDesc tupdesc,
|
|||
"Column Store Write State Management Context",
|
||||
ALLOCSET_DEFAULT_SIZES);
|
||||
HASHCTL info;
|
||||
uint32 hashFlags = (HASH_ELEM | HASH_CONTEXT);
|
||||
uint32 hashFlags = (HASH_ELEM | HASH_STRINGS | HASH_CONTEXT);
|
||||
memset(&info, 0, sizeof(info));
|
||||
info.keysize = sizeof(Oid);
|
||||
info.entrysize = sizeof(WriteStateMapEntry);
|
||||
|
|
|
@ -138,6 +138,8 @@ ListToHashSet(List *itemList, Size keySize, bool isStringList)
|
|||
if (!isStringList)
|
||||
{
|
||||
flags |= HASH_BLOBS;
|
||||
}else {
|
||||
flags |= HASH_STRINGS;
|
||||
}
|
||||
|
||||
HTAB *itemSet = hash_create("ListToHashSet", capacity, &info, flags);
|
||||
|
|
Loading…
Reference in New Issue