Re: Small optimization with expanding dynamic hash table

cca5507 <cca5507@qq.com>

From: cca5507 <cca5507@qq.com>
To: Rahila Syed <rahilasyed90@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-07-10T02:45:44Z
Lists: pgsql-hackers

Attachments

Hi,

The v2 patch maybe more clear:


We can calc bucket just by hashvalue &amp; high_mask when expanding table because the if condition in calc_bucket() must be false.


--
Regards,
ChangAo Chen