Re: Sequence scans on indexed row

Поиск
Список
Период
Сортировка
От Tim Ellis
Тема Re: Sequence scans on indexed row
Дата
Msg-id 1050818790.8042.98.camel@timetop
обсуждение исходный текст
Ответ на Sequence scans on indexed row  (kp <pgsql@pobox.gr>)
Список pgsql-admin
On Sat, 2003-04-19 at 22:36, kp wrote:
> The other difference between these two columns (or rather the kind of
> data they contain) is that the column for which postgres *uses* the
> index on contains around 32000 distinct values while the other only
> contains 14 distinct values.

Did you do a vacuum analyze on the tables in question? There are some
other more complex possibilities, but best to start w/ the basics.

--
Tim Ellis
Senior Database Architect and author, tedia2sql (http://tedia2sql.tigris.org)
If this helped you, http://svcs.affero.net/rm.php?r=philovivero


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

Предыдущее
От: kp
Дата:
Сообщение: Sequence scans on indexed row
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Sequence scans on indexed row