Re: PG using index+filter instead only use index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PG using index+filter instead only use index
Дата
Msg-id 5135.1269028162@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PG using index+filter instead only use index  (Alexandre de Arruda Paes <adaldeia@gmail.com>)
Ответы Re: PG using index+filter instead only use index  (Alexandre de Arruda Paes <adaldeia@gmail.com>)
Список pgsql-performance
Alexandre de Arruda Paes <adaldeia@gmail.com> writes:
> My question: if the cost is exactly the same, why PG choose the index
> ict13t2 on ct13t and apply a filter instead use the primary key ?

Why shouldn't it, if the estimated costs are the same?  You didn't
actually demonstrate they're the same though.

The cost estimates look a bit unusual to me; are you using nondefault
cost parameters, and if so what are they?

            regards, tom lane

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

Предыдущее
От: Dave Crooke
Дата:
Сообщение: Re: too complex query plan for not exists query and multicolumn indexes
Следующее
От: Yeb Havinga
Дата:
Сообщение: Re: GiST index performance