Re: [HACKERS] Comparing Datum's at aminsert() stage

2005-04-19 Thread Victor Y. Yegorov
* Tom Lane <[EMAIL PROTECTED]> [19.04.2005 19:48]: > That's probably what you *have* to use, since the normal deconstructors > assume they are working with heap tuples, which are different. But I > don't understand why you are waiting till after the index tuple is > formed. The aminsert function

Re: [HACKERS] Comparing Datum's at aminsert() stage

2005-04-18 Thread Tom Lane
"Victor Y. Yegorov" <[EMAIL PROTECTED]> writes: > So, I'd like to ask -- what is the "reverse" function for heap_fill_tuple(), > is it OK to use index_getattr()? That's probably what you *have* to use, since the normal deconstructors assume they are working with heap tuples, which are different.

[HACKERS] Comparing Datum's at aminsert() stage

2005-04-18 Thread Victor Y. Yegorov
Hi! For bitmaps, I need to search each value being inserted (for each column of the index) in the list of already existing values (stored in index's header area). To do that I need: 1) create Datum from PageItem's value (I store each value in it's own PageItem); 2) compare newly inserted Datum