Re: Composite index planner issues Was: Re: Constraint exclusion oddity with composite index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Composite index planner issues Was: Re: Constraint exclusion oddity with composite index
Дата
Msg-id 17646.1181175967@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Composite index planner issues Was: Re: Constraint exclusion oddity with composite index  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
"Joshua D. Drake" <jd@commandprompt.com> writes:
> Tom Lane wrote:
>> That statement seems perfectly accurate to me.

> Considering an index of a,b if I search for b I would expect that the 
> planner could use the index.

It can.  Whether it will think that's a good idea is another question
entirely, and one that seems a bit beyond the scope of the discussion
you're mentioning.

Try forcing the issue with enable_seqscan, and see what sort of
estimated and actual costs you get ...
        regards, tom lane


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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Composite index planner issues Was: Re: Constraint exclusion oddity with composite index
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: [RFC] GSoC Work on readonly queries done so far