Re: Small optimization with expanding dynamic hash table - Mailing list pgsql-hackers

From cca5507
Subject Re: Small optimization with expanding dynamic hash table
Date
Msg-id tencent_032D6F0AAE8C1FDEDC81AFDD4FA85C215406@qq.com
Whole thread Raw
In response to Re: Small optimization with expanding dynamic hash table  (Rahila Syed <rahilasyed90@gmail.com>)
List pgsql-hackers
> One thing to note is that in this scenario, there is no safeguard if the hashvalue is 0x111 and new_bucket is 0x110.

But the hash table is already corrupted if the hashvalue 0x111 in old_bucket 0x010, all hashvalue in old_bucket should have: hashvalue & low_mask == old_bucket's no.

--
Regards,
ChangAo Chen

pgsql-hackers by date:

Previous
From: Eduard Stefes
Date:
Subject: Re: [V2] Adding new CRC32C implementation for IBM S390X
Next
From: Andres Freund
Date:
Subject: Re: Adding basic NUMA awareness