Re: [BUGS] Bit String expand bug

2013-10-11 Thread Tom Lane
Gabriel Ciubotaru gciubot...@bitdefender.com 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.

regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


[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.
I wonder if is this intended for Big Endian processing or is just 
wrong coded.


Have a nice day !


--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs