> So, may by add to pg_opclass two fields?
 > bool is_varlena_key
 > bool is_lossy_compress


Sorry, I was wrong. In GiST, index_formtuple doesn't know about size of 
fixed-length type of keys, because only loadable module has information 
about structure of key. So, may be it needs to have function which 
return size of key or index_formtuple must looks at GISTENTRY.bytes( 
Note: A lot of currrent implementation of GiST modules don't set value 
GISTENTRY.bytes ). Or fields in pg_opclass:
int len_key
bool is_lossy_compress

if len_key==-1 then key is varlena type.

-- 
Teodor Sigaev
[EMAIL PROTECTED]



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to