On 07.03.2011 11:11, Nick Raj wrote:
create index ..... using gist (coordinates,time). It will create index on
both but i think there would be no linkage between them.
But i want linkage between location and time tree. I want for each location
i have Btree like

                                                         Rtree root
                                                             /     \
                                                      non-leaf .......
                                                       /    \          \
                                                  leaf   ......       leaf
                                                    |                     |
                                              Btree root        Btree root
                                               /         \          /       \
                                         non-leaf
                                           /
                                      leaf

How to create this kind of structure?

A multi-column index is quite similar to that, you should get the same performance characteristics. The leading column will determine the primary order of the tree, and for rows that have the same value in the leading column, the second column will determine the order among them.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to