| От | Tom Lane |
|---|---|
| Тема | Re: about type cast |
| Дата | |
| Msg-id | 20437.1328548081@sss.pgh.pa.us обсуждение |
| Ответ на | Re: about type cast (Robert Haas <robertmhaas@gmail.com>) |
| Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes:
> 2012/2/6 zoulx1982 <zoulx1982@163.com>:
>> my question is why int can cast to bit , but bot for bit varying?
> Off the top of my head, I'm guessing that it's just a case of nobody
> having implemented it.
I have some vague recollection that we didn't want to be squishy about
the length of the resulting bitstring. When you cast to bit you're more
or less forced to specify what you want, since the spec-mandated default
length is only 1. varbit would leave us having to make a decision in
the code.
Anyway, try searching the pgsql-hackers archives if you want some
history.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера