Re: Wrong plan sequential scan instead of an index one

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Wrong plan sequential scan instead of an index one
Дата
Msg-id 20399.1175271180@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Wrong plan sequential scan instead of an index one  (Richard Huxton <dev@archonet.com>)
Ответы Re: Wrong plan sequential scan instead of an index one [8.2 solved it]  (Gaetano Mendola <mendola@bigfoot.com>)
Список pgsql-performance
Richard Huxton <dev@archonet.com> writes:
> Ah, but it's got no way of knowing what matches you'll get for
> '%anything%'. There's no easy way to get statistics for matching substrings.

8.2 actually tries the match on the most-common-values list, if said
list is big enough (I think the threshold is stats target = 100).
Not sure if that will help here, though.

            regards, tom lane

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

Предыдущее
От: "Dave Dutcher"
Дата:
Сообщение: Re: Weird performance drop
Следующее
От: Erik Jones
Дата:
Сообщение: Re: Shared buffers, db transactions commited, and write IO on Solaris