Обсуждение: Multicolumn Indexing using R-Tree

Поиск
Список
Период
Сортировка

Multicolumn Indexing using R-Tree

От
lima_caetano@yahoo.com.br (Marcio Caetano)
Дата:
Hello !

I'm using PostgreSQL 7.3.2 and I need to create a R-Tree index that
uses more than one column in a table.

When I run the instruction it appears this message bellow:

DefineIndex: access method "rtree" does not support multi-column
indexes


How can I solve this problem ? 
Is it a limitation of PostgreSQL or the R-Tree concept  ?

Thank you in advance.

Márcio Caetano.


Re: Multicolumn Indexing using R-Tree

От
Teodor Sigaev
Дата:
Try contrib/rtree_gist

Marcio Caetano wrote:
> Hello !
> 
> I'm using PostgreSQL 7.3.2 and I need to create a R-Tree index that
> uses more than one column in a table.
> 
> When I run the instruction it appears this message bellow:
> 
> DefineIndex: access method "rtree" does not support multi-column
> indexes
> 
> 
> How can I solve this problem ? 
> Is it a limitation of PostgreSQL or the R-Tree concept  ?
> 
> Thank you in advance.
> 
> Márcio Caetano.
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings

-- 
Teodor Sigaev                                  E-mail: teodor@sigaev.ru


Re: Multicolumn Indexing using R-Tree

От
Paul Ramsey
Дата:
Try using GiST rtree (examples in contrib), GiST supports multi-key
indexes.

On Tuesday, February 3, 2004, at 06:56 AM, Marcio Caetano wrote:

> I'm using PostgreSQL 7.3.2 and I need to create a R-Tree index that
> uses more than one column in a table.
>
> When I run the instruction it appears this message bellow:
>
> DefineIndex: access method "rtree" does not support multi-column
> indexes
>
> How can I solve this problem ?
> Is it a limitation of PostgreSQL or the R-Tree concept  ?
>
> Thank you in advance.
>
> Márcio Caetano