Re: BUG #6290: converting interval from weeks to days

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: BUG #6290: converting interval from weeks to days
Дата
Msg-id 4EBC95AA.9050407@ringerc.id.au
обсуждение исходный текст
Ответ на Re: BUG #6290: converting interval from weeks to days  (John R Pierce <pierce@hogranch.com>)
Список pgsql-bugs
On 11/11/2011 09:35 AM, John R Pierce wrote:
> On 11/10/11 1:15 PM, Alexey Nalbat wrote:
>> => select '1000000000 weeks'::interval;
>> interval
>> ------------------
>> -1589934592 days
>
> a billion weeks is like 19 million years. somehow, I don't think that
> postgresql's date math has quite that range.

It should probably detect overflow and fail with an error like Pg does
with other overflow conditions, though. I think that was probably the point.

--
Craig Ringer

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: BUG #6289: help us
Следующее
От: Torsten Zuehlsdorff
Дата:
Сообщение: Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost"