pgsql: Prevent integer overflow within the integer-datetimes version of

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Prevent integer overflow within the integer-datetimes version of
Дата
Msg-id 20080123212613.E07F8754108@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Prevent integer overflow within the integer-datetimes version of
TimestampTzPlusMilliseconds.  An integer argument of more than INT_MAX/1000
milliseconds (ie, about 35 minutes) would provoke a wrong result, resulting
in incorrect enforcement of statement_timestamp values larger than that.
Bug was introduced in my rewrite of 2006-06-20, which fixed some other
overflow risks, but missed this one :-(  Per report from Elein.

Modified Files:
--------------
    pgsql/src/include/utils:
        timestamp.h (r1.73 -> r1.74)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/timestamp.h?r1=1.73&r2=1.74)

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

Предыдущее
От: alvherre@pgfoundry.org (Alvaro Herrera)
Дата:
Сообщение: press - pr: Adding ESpanish translation of release.txt
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Prevent integer overflow within the integer-datetimes version of