pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gabriel Ciubotaru <gciubotaru@bitdefender.com>
To: pgsql-bugs@postgresql.org
Subject: Bit String expand bug
Date: Thu, 10 Oct 2013 12:17:39 +0300
Message-ID: <525670B3.5060007@bitdefender.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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 !


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



view thread (3+ messages)  latest in thread

Message-ID: <525670B3.5060007@bitdefender.com>
Permalink:  ../525670B3.5060007@bitdefender.com/
Also on:    postgresql.org/message-id/525670B3.5060007@bitdefender.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: gciubotaru@bitdefender.com
  Subject: Re: Bit String expand bug
  In-Reply-To: <525670B3.5060007@bitdefender.com>
  References: <525670B3.5060007@bitdefender.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox