Re: select single entry and its neighbours using direct-acess to index?

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: select single entry and its neighbours using direct-acess to index?
Дата
Msg-id 87hdmz168u.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: select single entry and its neighbours using direct-acess to index?  (Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>)
Список pgsql-general
Pierre-Frédéric Caillaud <lists@boutiquenumerique.com> writes:

>     One could always use ARRAY[name,name2] > ARRAY['b','a']
>     But it is NOT index-friendly...

It won't use an existing two-column index but you can create an expression
index on array[name,name2] and this expression will use it. It won't work if
either column is NULL though.

--
greg

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: When to encrypt
Следующее
От: Andrew - Supernews
Дата:
Сообщение: Re: Index scan vs. Seq scan on timestamps