Save Hash Indexes

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Save Hash Indexes
Дата
Msg-id m2bo242qqp.fsf@2ndQuadrant.fr
обсуждение исходный текст
Ответы Re: Save Hash Indexes  ("ktm@rice.edu" <ktm@rice.edu>)
Re: Save Hash Indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Save Hash Indexes  (Jeff Janes <jeff.janes@gmail.com>)
Re: Save Hash Indexes  (Daniel Farina <daniel@heroku.com>)
Список pgsql-hackers
Hi,

Here's an idea: when a user ask for an Hash Index transparently build a
BTree index over an hash function instead.

Advantages:
 - it works - it's crash safe - it's (much?) faster than a hash index anyways

Drawbacks:
 - root access concurrency - we need a hash_any function stable against pg_upgrade

After talking about it with Heikki, we don't seem to find ways in which
the root access concurrency pattern would be visible enough to matter.

Also, talking with Peter Geoghegan, it's unclear that there's a use case
where a hash index would be faster than a btree index over the hash
function.

Comments?
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



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

Предыдущее
От: Gurjeet Singh
Дата:
Сообщение: Re: Shave a few instructions from child-process startup sequence
Следующее
От: "ktm@rice.edu"
Дата:
Сообщение: Re: Save Hash Indexes