Re: bit strings - anyone working on them? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: bit strings - anyone working on them?
Date
Msg-id 26693.1051111774@sss.pgh.pa.us
Whole thread Raw
In response to Re: bit strings - anyone working on them?  (Philip Warner <pjw@rhyme.com.au>)
Responses Re: bit strings - anyone working on them?
List pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> At 10:36 AM 23/04/2003 -0400, Tom Lane wrote:
>> assumption that the result of casting int to bit(n) and then to bit(m)
>> should agree with the result of casting int directly to bit(m).

> I'm not sure I follow the implication; in fact I would hope that:
>      Cast(B'0001' as bit(10))
> would yield '0001000000'.

Yes, and what will    Cast( Cast(42 as bit(32)) as bit(10))
yield?  Unless you make the second cast truncate at the left, you'll get
ten zero bits out of this.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Philip Warner
Date:
Subject: Re: bit strings - anyone working on them?
Next
From: "scott.marlowe"
Date:
Subject: Re: Are we losing momentum?