Re: Index usage btree+gist ?

Поиск
Список
Период
Сортировка
Искать
От
Arnaud Lesauvage
Тема
Re: Index usage btree+gist ?
Дата
Msg-id
43F5E65F.4050704@freesurf.fr
Ответ на
Список
Дерево обсуждения
Index usage btree+gist ? Arnaud Lesauvage <thewild@freesurf.fr>
Re: Index usage btree+gist ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Index usage btree+gist ? Arnaud Lesauvage <thewild@freesurf.fr>
Re: Index usage btree+gist ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Index usage btree+gist ? Arnaud Lesauvage <thewild@freesurf.fr>
Tom Lane a écrit :
> Arnaud Lesauvage  writes:
>> I have a table with a lot of rows (~3.000.000 I believe), and two
>> indexes.
>> The first one is a BTree index on a column (lets call it
>> btreecolumn) which contains only 8 different integer values (from
>> 0 to 8).
> 
> An index as unselective as that is almost useless.  It's not surprising
> that the planner doesn't think it's worth the trouble to use it.

OK, thanks for pointing this out.
I was advised the PostGis list to use a multicolumn index on both 
the integer column and the geometry column.
Another suggestion was to cluster the table on the gist-geometry 
index.
What do you think about that ?

Regards
--
Arnaud

В списке pgsql-novice по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: Index usage btree+gist ?
От: Tom Lane
Дата:
Сообщение: Re: Index usage btree+gist ?
FAQ