mirror of https://github.com/citusdata/citus.git
Use oid_hash in write state management
parent
8ef94dc1f5
commit
abd3c1089b
|
@ -16,6 +16,7 @@
|
||||||
#include "access/tsmapi.h"
|
#include "access/tsmapi.h"
|
||||||
#if PG_VERSION_NUM >= 130000
|
#if PG_VERSION_NUM >= 130000
|
||||||
#include "access/heaptoast.h"
|
#include "access/heaptoast.h"
|
||||||
|
#include "common/hashfn.h"
|
||||||
#else
|
#else
|
||||||
#include "access/tuptoaster.h"
|
#include "access/tuptoaster.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -132,9 +133,10 @@ columnar_init_write_state(Relation relation, TupleDesc tupdesc,
|
||||||
"Column Store Write State Management Context",
|
"Column Store Write State Management Context",
|
||||||
ALLOCSET_DEFAULT_SIZES);
|
ALLOCSET_DEFAULT_SIZES);
|
||||||
HASHCTL info;
|
HASHCTL info;
|
||||||
uint32 hashFlags = (HASH_ELEM | HASH_STRINGS | HASH_CONTEXT);
|
uint32 hashFlags = (HASH_ELEM | HASH_FUNCTION | HASH_CONTEXT);
|
||||||
memset(&info, 0, sizeof(info));
|
memset(&info, 0, sizeof(info));
|
||||||
info.keysize = sizeof(Oid);
|
info.keysize = sizeof(Oid);
|
||||||
|
info.hash = oid_hash;
|
||||||
info.entrysize = sizeof(WriteStateMapEntry);
|
info.entrysize = sizeof(WriteStateMapEntry);
|
||||||
info.hcxt = WriteStateContext;
|
info.hcxt = WriteStateContext;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue