Re: [BUGS] Bit String expand bug

2013-10-11 Thread Tom Lane
Gabriel Ciubotaru writes: > There's a problem with expanding Bit String data types, it make > right padding with 0 instead of left padding , making the bit mask > almost useless. You need to show an example of the problem; this report has no details that would let us fix anything.

[BUGS] Bit String expand bug

2013-10-10 Thread Gabriel Ciubotaru
Hello, There's a problem with expanding Bit String data types, it make right padding with 0 instead of left padding , making the bit mask almost useless. There is an workaround for that, like mask::bit(n) >> (n-length(mask)), but is much slower than directly left padding on expand.