Alexander Korotkov <a.korot...@postgrespro.ru> writes: > I think Connor struggles to implement just an operator class. Advising him > to implement an index access method is a good way to get him away of > PostgreSQL hacking for a long time :)
Yeah. To answer the question a bit more directly: there are not any contrib modules that add SP-GiST opclasses, but there are some that add GiST or GIN opclasses, so any one of those would serve as a model for the basic mechanism of writing an extension. Just replace the AM-specific support functions for those AMs with the ones SP-GiST uses. (You can crib some code details from the in-core SP-GiST support functions.) regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers