Re: number of rows estimation for bit-AND operation

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: number of rows estimation for bit-AND operation
Дата
Msg-id dcc563d10908181534u661d91d3q6fbaa0256582b98e@mail.gmail.com
обсуждение исходный текст
Ответ на number of rows estimation for bit-AND operation  (Slava Moudry <smoudry@4info.net>)
Ответы Re: number of rows estimation for bit-AND operation  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-performance
2009/8/18 Slava Moudry <smoudry@4info.net>:
>> increase default stats target, analyze, try again.
> This field has only 5 values. I had put values/frequencies in my first post.

Sorry, kinda missed that.  Anyway, there's no way for pg to know which
operation is gonna match.  Without an index on it.  So my guess is
that it just guesses some fixed value.  With an index it might be able
to get it right, but you'll need an index for each type of match
you're looking for.  I think.  Maybe someone else on the list has a
better idea.

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: SQL Query Performance - what gives?
Следующее
От: Slava Moudry
Дата:
Сообщение: Re: number of rows estimation for bit-AND operation