Re: HashTable KeySize

2019-10-04 Thread Tomas Vondra
On Fri, Oct 04, 2019 at 05:06:47PM +0530, Natarajan R wrote: typedef struct HashTableKey { Oid dbId; // 4 bytes int64 productid; // 8 bytes }HashTableKey; (total size - 12 bytes) typedef struct HashTableEntry { HashTableKey key; ProductInfo *pdt; }HashTableEntry; HASHCTL hashInfo; hashInfo.

HashTable KeySize

2019-10-04 Thread Natarajan R
typedef struct HashTableKey { Oid dbId; // 4 bytes int64 productid; // 8 bytes }HashTableKey; (total size - 12 bytes) typedef struct HashTableEntry { HashTableKey key; ProductInfo *pdt; }HashTableEntry; HASHCTL hashInfo; hashInfo.keysize = sizeof(HashTableKey); hashInfo.entrysize = sizeof