Re: Hash index todo list item

Поиск
Список
Период
Сортировка
От Kenneth Marshall
Тема Re: Hash index todo list item
Дата
Msg-id 20070904002730.GI16568@it.is.rice.edu
обсуждение исходный текст
Ответ на Re: Hash index todo list item  ("Ben Tilly" <btilly@gmail.com>)
Список pgsql-hackers
On Mon, Sep 03, 2007 at 05:20:34PM -0700, Ben Tilly wrote:
> 
> That raises a very random thought.  One of the nicer features of
> Oracle is the ability to have function-based indexes.  So you could
> index, say, trim(lower(person.name)).  There are a *lot* of practical
> situations where that comes in handy.  The best workaround that I can
> think of for not having that is to have a column defined to hold the
> result of the function, maintain that column with a trigger, then
> index that column.  Which works, but is inelegant.  (It also requires
> storing completely redundant data.)
> 
> Is there any prospect of postgres aquiring that functionality?
> 
> Ben
> 
I believe that PostgreSQL already supports functional indexes. In fact,
one suggestion to address the egregiously poor performance of the current
hash index was to replace it with a functional index.

Regards,
Ken


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

Предыдущее
От: "Ben Tilly"
Дата:
Сообщение: Re: Hash index todo list item
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Hash index todo list item