Thread: Multicolumn Indexing using R-Tree
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.
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
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