Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UiWxa-0006W5-In for pgsql-bugs@arkaria.postgresql.org; Fri, 31 May 2013 21:34:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UiWxZ-0004dr-En for pgsql-bugs@arkaria.postgresql.org; Fri, 31 May 2013 21:34:05 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UiWxY-0004dc-FX for pgsql-bugs@postgresql.org; Fri, 31 May 2013 21:34:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UiWxS-0001uc-0n for pgsql-bugs@postgresql.org; Fri, 31 May 2013 21:34:03 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r4VLXqEZ011098; Fri, 31 May 2013 17:33:52 -0400 (EDT) From: Tom Lane To: gerald@hexboss.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8191: Wrong bit conversion In-reply-to: References: Comments: In-reply-to gerald@hexboss.com message dated "Thu, 30 May 2013 16:43:03 -0000" Date: Fri, 31 May 2013 17:33:51 -0400 Message-ID: <11097.1370036031@sss.pgh.pa.us> X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org gerald@hexboss.com writes: > SELECT b'1'::bit(64), x'1'::bit(64), 1::bit(64) > RESULT: > "1000000000000000000000000000000000000000000000000000000000000000", > "0001000000000000000000000000000000000000000000000000000000000000", > "0000000000000000000000000000000000000000000000000000000000000001" I believe those are all operating as intended. 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