Multiple column index usage question

Поиск
Список
Период
Сортировка
От Jan Muszynski
Тема Multiple column index usage question
Дата
Msg-id 45B0F79E.32658.AADD9A9@postgres.jancm.org
обсуждение исходный текст
Ответы Re: Multiple column index usage question  (Ron Johnson <ron.l.johnson@cox.net>)
Re: Multiple column index usage question  (Tomas Vondra <tv@fuzzy.cz>)
Список pgsql-general
Rather simple question, of which I'm not sure of the answer.

If I have a multiple column index, say:
    Index index1 on tableA (foo,bar)

and I then:
    Select * from "tableA" where foo = <some value>

Will index1 be used, or am I looking at a seqscan in all circumstances?

TIA
-jan m

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Autovacuum Improvements
Следующее
От: Russell Smith
Дата:
Сообщение: Re: [HACKERS] Autovacuum Improvements