[Bizgres-general] Re: Latest bitmap patch results. (tuple offset out of range)

Jie Zhang jzhang at greenplum.com
Wed Feb 1 07:32:17 GMT 2006


Mark,

> 
> 
> To rule the 'I did something silly' type of error, I changed bitmap.h to 
> use 32-bit words, and after a rebuild and re-initialize, these errors do 
> *not* appear. After a change back to 8-bit words, the errors come back :-(
> 
> 
> I did wonder about alignment of uint8 (which is really unsigned char) on 
> this platform (FreeBSD/x86), however it is 1 byte... any ideas?
> 

This is a bug. The problem is because the code incorrectly handles the first bunch of consecutive zeros in a bitmap when the number of these zeros are greater than (2^(word_size))*word_size.

A patch (on top of 01/15 patch) is attached.

Thanks,
Jie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bizgres-bitmapindex-01-31.patch
Type: application/octet-stream
Size: 1830 bytes
Desc: bizgres-bitmapindex-01-31.patch
Url : http://pgfoundry.org/pipermail/bizgres-general/attachments/20060201/5aa6d152/bizgres-bitmapindex-01-31.obj


More information about the Bizgres-general mailing list