Re: INTERVAL overflow detection is terribly broken

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: INTERVAL overflow detection is terribly broken
Дата
Msg-id 26785.1390868361@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: INTERVAL overflow detection is terribly broken  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: INTERVAL overflow detection is terribly broken  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Oh, one odd thing about this patch.  I found I needed to use INT64_MAX,
> but I don't see it used anywhere else in our codebase.  Is this OK?  Is
> there a better way?

Most of the overflow tests in int.c and int8.c are coded to avoid relying
on the MIN or MAX constants; which seemed like better style at the time.
I'm not sure whether relying on INT64_MAX to exist is portable.
        regards, tom lane



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Add min and max execute statement time in pg_stat_statement
Следующее
От: Kouhei Kaigai
Дата:
Сообщение: Re: Custom Scan APIs (Re: Custom Plan node)