I didn't like rel.h being included in itup.h. Do you really need a Relation as argument to index_truncate_tuple? It looks to me like you could pass the tupledesc instead; indnatts could be passed as a separate argument instead of IndexRelationGetNumberOfAttributes.
Hm, okay, I understand why, will fix by you suggestion -- Teodor Sigaev E-mail: teo...@sigaev.ru WWW: http://www.sigaev.ru/