Re: [HACKERS] UUID datatype GiST index support

2011-08-22 Thread Misa Simic
Thanks Alexander, 'Scalar datatype' - given me a hint... Looking further in btree_gist source, for inet datatype, which seems a bit complexier then uuid... (char, char, char[16]) structure for inet, compared to jut char[16] for uuid. GiST pattern works with double datatype... and there is method

Re: [HACKERS] UUID datatype GiST index support

2011-08-22 Thread Alexander Korotkov
Hi! On Mon, Aug 22, 2011 at 2:54 PM, Misa Simic wrote: > static int > m4_uuidkey_cmp(const void *a, const void *b) > { > uuidKEY*ia = (uuidKEY *) (((Usrt *) a)->t); > uuidKEY*ib = (uuidKEY *) (((Usrt *) b)->t); > int res; > > res = DatumGetInt32(DirectFunctionCall2(uuid_cmp, UUIDPGetDat