Re: If an index is based on 3 columns will a query using two of the columns utilize the index?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: If an index is based on 3 columns will a query using two of the columns utilize the index?
Дата
Msg-id 20050912141845.GA34597@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: If an index is based on 3 columns will a query using two of the columns utilize the index?  ("Reid Thompson" <Reid.Thompson@ateb.com>)
Список pgsql-general
On Mon, Sep 12, 2005 at 10:05:36AM -0400, Reid Thompson wrote:
> Alvaro Herrera wrote:
> > Note that if your example query used the columns (lname, dob),
> > the answer would be "no."
>
> Why is that? In order to use an index, does the query have to utilize
> the 'first' element of the index?

In released versions of PostgreSQL, yes.  Version 8.1 will remove
that restriction.

--
Michael Fuhr

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

Предыдущее
От: "Reid Thompson"
Дата:
Сообщение: Re: If an index is based on 3 columns will a query using two of the columns utilize the index?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: If an index is based on 3 columns will a query using two of the columns utilize the index?