Re: Small optimization with expanding dynamic hash table

From: cca5507 <cca5507(at)qq(dot)com>
To: Rahila Syed <rahilasyed90(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Small optimization with expanding dynamic hash table
Date: 2025-07-08 11:56:50
Message-ID: tencent_032D6F0AAE8C1FDEDC81AFDD4FA85C215406@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

&gt;&nbsp;One thing to note is that in this scenario, there is no safeguard if the&nbsp;hashvalue is 0x111 and new_bucket is 0x110.

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

--
Regards,
ChangAo Chen

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2025-07-08 12:27:12 Re: Adding basic NUMA awareness
Previous Message Amit Kapila 2025-07-08 11:54:33 Re: A recent message added to pg_upgade