| От | 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?
|
| Список | pgsql-hackers |
Philip Warner <pjw@rhyme.com.au> 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера