Re: WIP: to_char, support for EEEE format

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WIP: to_char, support for EEEE format
Дата
Msg-id 27841.1249264518@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: WIP: to_char, support for EEEE format  (Euler Taveira de Oliveira <euler@timbira.com>)
Ответы Re: WIP: to_char, support for EEEE format  (Brendan Jurd <direvus@gmail.com>)
Re: WIP: to_char, support for EEEE format  (Brendan Jurd <direvus@gmail.com>)
Список pgsql-hackers
Euler Taveira de Oliveira <euler@timbira.com> writes:
> As I said in a prior e-mail, Oracle has a diferent overflow limit (-84 to 127).
> In PostgreSQL, the numeric datatype can have up to 1000 digits (ie 1e+999) and
> the double precision datatype can have up to 309 digits (ie 1e-307 or 1e+308).
> We should support up to 3 exponent digits so all of our native datatypes are
> covered by the to_char() function.

Uh, no, we had better support more.  The actual limit of the current
numeric format is 1e+131072.

As long as we consider that EEEE should emit as many exponent digits
as needed, this isn't particularly critical.  But it would be if we
try to specify an exact number of output digits.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: CommitFest Status Summary - 2009-08-03
Следующее
От: Brendan Jurd
Дата:
Сообщение: Re: WIP: to_char, support for EEEE format