Re: Hash Indexes - Mailing list pgsql-general

From Tom Lane
Subject Re: Hash Indexes
Date
Msg-id 24582.1199736611@sss.pgh.pa.us
Whole thread Raw
In response to Re: Hash Indexes  (Naz Gassiep <naz@mira.net>)
List pgsql-general
Naz Gassiep <naz@mira.net> writes:
>> Why are hash indexes "obviously" best? In an ideal world with a good
>> implementation maybe, but postgresql b-trees are really quite good.
>>
> Because doing normal queries on a table where there are large text
> blocks is unlikely to be a good idea. E.g.,:
> SELECT * FROM table WHERE textcol = 'a 4kb block of text';

You seem to be harboring some rather severe conceptual errors about
how hash indexes work, or at least how Postgres' hash indexes work.
I get the impression you think that a hash index stores only a hash
code and not the actual field value, but that's not so.

            regards, tom lane

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: calculating shared data memory space
Next
From: Richard Broersma Jr
Date:
Subject: Re: many to one of many modeling question