Re: [HACKERS] sp-gist porting to postgreSQL

2004-11-10 Thread Ramy M. Hassan
On Wed, 10 Nov 2004, Oleg Bartunov wrote: On Wed, 10 Nov 2004, Ramy M. Hassan wrote: I believe that it is still possible to have several index access methods for the same type and the same operations. But this requires that each index access method has its own tuple in the pg_am relation and ther

Re: [HACKERS] sp-gist porting to postgreSQL

2004-11-10 Thread Tom Lane
Oleg Bartunov <[EMAIL PROTECTED]> writes: > AFAIK, posgresql doesnt' supports several indices for the same type. I think what's really being asked for is several operator classes for the same type. This most certainly *is* possible. regards, tom lane ---

Re: [HACKERS] sp-gist porting to postgreSQL

2004-11-10 Thread Oleg Bartunov
On Wed, 10 Nov 2004, Ramy M. Hassan wrote: I believe that it is still possible to have several index access methods for the same type and the same operations. But this requires that each index access method has its own tuple in the pg_am relation and therefore postgresql recognizes it by itself. Bu

Re: [HACKERS] sp-gist porting to postgreSQL

2004-11-10 Thread Ramy M. Hassan
I believe that it is still possible to have several index access methods for the same type and the same operations. But this requires that each index access method has its own tuple in the pg_am relation and therefore postgresql recognizes it by itself. But this is not the case with GiST based indi

Re: [HACKERS] sp-gist porting to postgreSQL

2004-11-10 Thread Oleg Bartunov
On Wed, 10 Nov 2004, Ramy M. Hassan wrote: Oleg, Thanks for your prompt reply. Actually, I am able to create a new access method for testing and add an operator class for the type "integer" using the new access method. Then created a table with two integer fields, one indexed using the new access m

Re: [HACKERS] sp-gist porting to postgreSQL

2004-11-09 Thread Ramy M. Hassan
Oleg, Thanks for your prompt reply. Actually, I am able to create a new access method for testing and add an operator class for the type "integer" using the new access method. Then created a table with two integer fields, one indexed using the new access method and the other using a btree index, a

Re: [HACKERS] sp-gist porting to postgreSQL

2004-11-09 Thread Oleg Bartunov
Ramy, glad to hear from you ! AFAIK, posgresql doesnt' supports several indices for the same type. I think this is a problem of optimizer. Probably other hackers know better. I forward your message to -hackers mailing list which is a relevant place for GiST discussion. regards,