Re: Issues with generate_series using integer boundaries

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Issues with generate_series using integer boundaries
Дата
Msg-id 12064.1296522325@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Issues with generate_series using integer boundaries  (Thom Brown <thom@linux.com>)
Ответы Re: Issues with generate_series using integer boundaries
Список pgsql-general
Thom Brown <thom@linux.com> writes:
> I've noticed that if I try to use generate_series to include the upper
> boundary of int4, it never returns:

I'll bet it's testing "currval > bound" without considering the
possibility that incrementing currval caused an overflow wraparound.
We fixed a similar problem years ago in plpgsql FOR-loops...

            regards, tom lane

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