Re: Index on multiple columns VS multiple index

Поиск
Список
Период
Сортировка
От Jonathan S. Katz
Тема Re: Index on multiple columns VS multiple index
Дата
Msg-id B8172ABC-0EB4-4859-8D93-A7CB11DA6785@excoventures.com
обсуждение исходный текст
Ответ на Re: Index on multiple columns VS multiple index  (Brice André <brice@famille-andre.be>)
Ответы Re: Index on multiple columns VS multiple index  (Brice André <brice@famille-andre.be>)
Список pgsql-sql
On Jan 2, 2014, at 3:00 PM, Brice André wrote:

> But I have still one question that remains :
>
> suppose I define an index on ('a', 'b') columns, will it be useful for a search on 'a' column only, or will it be
ignoreby postgresl ? 

If you define the index on ('a', 'b') in that order and are just searching for 'a' in your query, the query planner
willuse the index. 

Jonathan




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

Предыдущее
От: "Jonathan S. Katz"
Дата:
Сообщение: Re: Index on multiple columns VS multiple index
Следующее
От: Brice André
Дата:
Сообщение: Re: Index on multiple columns VS multiple index