Bit String expand bug

From: Gabriel Ciubotaru <gciubotaru(at)bitdefender(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bit String expand bug
Date: 2013-10-10 09:17:39
Message-ID: 525670B3.5060007@bitdefender.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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 !

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message s.mechaab 2013-10-10 13:27:12 BUG #8517: Problem due to libeay32.dll about ordinal
Previous Message dwayne 2013-10-09 20:58:46 BUG #8516: Calling VOLATILE from STABLE function