Re: A better way than tweaking NTUP_PER_BUCKET

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: A better way than tweaking NTUP_PER_BUCKET
Дата
Msg-id 20140125215412.GI9750@momjian.us
обсуждение исходный текст
Ответ на Re: A better way than tweaking NTUP_PER_BUCKET  (Atri Sharma <atri.jiit@gmail.com>)
Ответы Re: A better way than tweaking NTUP_PER_BUCKET  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Uh, were are we on this?  Is it a TODO?

---------------------------------------------------------------------------

On Wed, Jul  3, 2013 at 01:39:28PM +0530, Atri Sharma wrote:
> Hi all,
> 
> I have been working on a patch for the above discussed
> functionalities. I made an array of int32s, one for each bucket in a
> hash table(the array is per hash table).
> 
> I am using the hash value directly to set the corresponding bit in the
> bit field.Specifically:
> 
> bitfield_orvalue = 1<<hashvalue;
> hashtable->bitFields[bucketNumber] =
> (hashtable->bitFields[bucketNumber]) |bitfield_orvalue;
> 
> But,the hash values are way beyond this, and I admit that my choice of
> int32 as bitfield isn't correct here.
> 
> The hash values are like:
> 
> 1359910425
>  1359910425
>  -1662820951
>  -1662820951
> 
> What should I be using for the bit map?
> 
> Regards,
> 
> Atri
> 
> --
> Regards,
> 
> Atri
> l'apprenant
> 
> 
> -- 
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + Everyone has their own god. +



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: A minor correction in comment in heaptuple.c
Следующее
От: Tom Lane
Дата:
Сообщение: Re: A minor correction in comment in heaptuple.c