Обсуждение: Multikey Index GISt

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

Multikey Index GISt

От
"Leticia"
Дата:

I need to implement a new GisT index that use multikey (i.e. tree columns).

I need to storage in the entry index the three transformed columns alltogether.

 

If a use “create index anIndex on tablename using ( atr1   atr1_ops,  atr2  atr2_ops,  atr3   atr3_ops) “,

I will obtain three separated invocation of “compress” function (one for each XXX_ops). I need to receive them in only one invocation. How can I do it using GIsT?

 

I am using PostgreSQL8.2.3. How does it work the multikey GIsT announced in the latest version of PosgreSQL?

 

Thanks a lot,

Leticia

Re: Multikey Index GISt

От
Tom Lane
Дата:
"Leticia" <lgomez@itba.edu.ar> writes:
> If a use "create index anIndex on tablename using ( atr1   atr1_ops,  atr2
> atr2_ops,  atr3   atr3_ops) ", 

> I will obtain three separated invocation of "compress" function (one for
> each XXX_ops). I need to receive them in only one invocation.

You can't.  The fact that you want to means that you don't actually have
three independent operator classes there.  Perhaps what you really need
is a functional index on some function of the three columns?
        regards, tom lane