| От | Tom Lane |
|---|---|
| Тема | Re: AW: type conversion discussion |
| Дата | |
| Msg-id | 6249.958708282@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: AW: type conversion discussion (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes:
> (The workaround here could be to convert numerics that are wider
> than floats to `infinity' :-)
Hmm, that's actually not a bad idea. Infinity is a pretty portable
notion these days, what with nearly everyone toeing the IEEE float
line ... so we could have numeric->float generate a NaN if possible
and only resort to an elog() on machines without NaN.
OTOH, no mathematician will accept the notion that 1e1000 is the
same as infinity ;-). Mathematical purity would probably favor
the elog.
Comments anyone?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера