Re: Hash Indexes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Hash Indexes
Дата
Msg-id 24582.1199736611@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Hash Indexes  (Naz Gassiep <naz@mira.net>)
Список 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 по дате отправления:

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: calculating shared data memory space
Следующее
От: Richard Broersma Jr
Дата:
Сообщение: Re: many to one of many modeling question