Re: How to make hash indexes fast

From: Ondrej Ivanič <ondrej(dot)ivanic(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: How to make hash indexes fast
Date: 2011-09-19 01:25:16
Message-ID: CAM6mieL7nSVvvM8m9qOZNBkHGuDBQf5inMPuMZ-JkWrd_1_Ymg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

On 19 September 2011 11:14, Craig James <craig_james(at)emolecules(dot)com> wrote:
> DBsig for a hash-collision chain is always the bitwise OR of every record in
> that hash-collision chain.  When you add a record to the hash table, you do
> a bitwise OR of its signature into the existing DBsig.  If you delete a
> record, you erase DBsig and rebuild it by recomputing the signatures of each
> record in the hash-collision chain and ORing them together again.

Sound like a Bloom filter [1] to me.

BTW, Does Postgres use Bloom filter anywhere?

[1] http://en.wikipedia.org/wiki/Bloom_filter

--
Ondrej Ivanic
(ondrej(dot)ivanic(at)gmail(dot)com)

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Claudio Freire 2011-09-19 01:27:22 Re: How to make hash indexes fast
Previous Message Craig James 2011-09-19 01:15:45 Re: Index containing records instead of pointers to the data?