Re: AW: type conversion discussion

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: type conversion discussion
Следующее
От: Tom Lane
Дата:
Сообщение: Re: OO Patch