YesPaul Matthews <plm@netspace.net.au> writes:Witting a box@>point function easy. Having a spot of trouble trying to figure out where and how to graft this into the GiST stuff. Could someone please point me in the general direction?You want index support for it, I suppose?
All done but the comment part :-)Without index support (but needed anyway), you implement your code in a C module then make it visible from SQL. ...cut... COMMENT ON OPERATOR @>(box, point) IS 'box contains point?';
Thanks overlooked CLASS and FAMILY in my hurry. Hopefully that is where the problem is.Now for adding support for index lookups, you have to see documentation about OPERATOR CLASS and OPERATOR FAMILY. Hope this helps, regards,