Re: bit strings - anyone working on them?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bit strings - anyone working on them?
Дата
Msg-id 23924.1051071259@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: bit strings - anyone working on them?  (Philip Warner <pjw@rhyme.com.au>)
Ответы Re: bit strings - anyone working on them?
Re: bit strings - anyone working on them?
Список pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> See my earlier post in this thread questioning which was the low order bit. 

That seems to be the crux of the matter.  Given the assumption that
padding or truncation occurs on the right of the bitstring, ISTM that
you will only get sensible behavior for integer<->bitstring mappings
if the integer's LSB maps to the leftmost bit of the bitstring.

Yet it would seem a tad odd to make 8 map to B'0001'.  I sure don't
find that natural.

Is there a way out of this?  I'm not sure.  I don't think that the SQL
spec's bitstring definitions are really intended to allow sensible
mappings to integer values --- so maybe there is no way to satisfy the
spec and have natural integer mappings at the same time.
        regards, tom lane



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: bit strings - anyone working on them?
Следующее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: Are we losing momentum?