Re: WIP: to_char, support for EEEE format

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: WIP: to_char, support for EEEE format
Дата
Msg-id 37ed240d0908080045g4700939eg86995c80a43f74b8@mail.gmail.com
обсуждение исходный текст
Ответ на Re: WIP: to_char, support for EEEE format  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: WIP: to_char, support for EEEE format  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
2009/8/3 Tom Lane <tgl@sss.pgh.pa.us>:
> Uh, no, we had better support more.  The actual limit of the current
> numeric format is 1e+131072.
>

Given your comment above I'm thinking it reasonable to use an int32 to
store the exponent -- will that be safe?

That would allow for a maximum of 10 exponent digits.  As an aside, I
note that int4out() hardcodes the maximum number of digits rather than
exposing a constant (c.f. MAXINT8LEN in int8.c).  I'm considering
adding MAXINT2LEN and MAXINT4LEN to int.c in passing.  Excessive
tinkering, or worthy improvement?

Cheers,
BJ


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: hot standby - merged up to CVS HEAD
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: Split-up ECPG patches