| От | Sam Mason |
|---|---|
| Тема | Re: Adding integers ( > 8 bytes) to an inet |
| Дата | |
| Msg-id | 20090910155116.GO5407@samason.me.uk обсуждение |
| Ответ на | Re: Adding integers ( > 8 bytes) to an inet (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
On Thu, Sep 10, 2009 at 10:30:49AM -0400, Tom Lane wrote: > Kristian Larsson <kristian@spritelink.net> writes: > > Do we > > c) add a conversation between NUMERIC and INET so one can add a > > NUMERIC to an INET just as is possible today with INTEGERs? > > Proposal (c) is disingenuous because it ignores the fact that NUMERIC > does not have (and cannot easily implement) most of the bitwise > operations that people might think they want here. Huh, good point. What you want is a finite field; which looks exactly like what the "bit" type is for. Why not use that? You can't cast them to or from numeric which is a bit annoying, but doesn't seem too hard in principle. -- Sam http://samason.me.uk/
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера