Re: bit strings - anyone working on them?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: bit strings - anyone working on them?
Дата
Msg-id 20030422203314.O76529-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: bit strings - anyone working on them?  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-hackers
On Wed, 23 Apr 2003, Christopher Kings-Lynne wrote:

> > > ISTM we should return B'11' for this. ie. build the smallest varbit that
> > > contains the result, and return it.
> >
> > ISTM that the answer would be closer to B'10' according to the spec.  The
> > spec asks for right extension by 0 when casting to a larger size fixed bit
> > string.
>
> Huh??? That makes no sense at all!!!

Yeah, as Philip says, I think the spec writers were assuming that left
most bit is LSB. It makes more sense with the way the casting and
substring are defined (but would mean that our int->bit casts are wierd
then)



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: CLOSE command tag
Следующее
От: Tom Lane
Дата:
Сообщение: Re: bit strings - anyone working on them?