Re: bit strings - anyone working on them?

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: bit strings - anyone working on them?
Дата
Msg-id
3110.1051025503@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
bit strings - anyone working on them? Philip Warner <pjw@rhyme.com.au>
Re: bit strings - anyone working on them? Stephan Szabo <sszabo@megazone23.bigpanda.com>
Re: bit strings - anyone working on them? Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Re: bit strings - anyone working on them? Tom Lane <tgl@sss.pgh.pa.us>
Re: bit strings - anyone working on them? Philip Warner <pjw@rhyme.com.au>
Re: bit strings - anyone working on them? Tom Lane <tgl@sss.pgh.pa.us>
Re: bit strings - anyone working on them? Philip Warner <pjw@rhyme.com.au>
Philip Warner  writes:
>      select B'10' | B'1';
>     is currently illegal.

> ISTM we should return B'11' for this. ie. build the smallest varbit that 
> contains the result, and return it.

Why would that be the correct answer and not B'10' --- ie, which end of
the shorter string should get padded?  If anything I'd expect to see
padding added on the right.

> Doesn't seem too unreasonable to support varbit<->numeric conversions.

Aren't those there already for conversions to/from int4 and int8?  What
else would you want?
		regards, tom lane


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Philip Warner
Дата:
FAQ