Fix overflow hazard in timestamp_pl_interval

Поиск
Список
Период
Сортировка
От Joseph Koshakow
Тема Fix overflow hazard in timestamp_pl_interval
Дата
Msg-id CAAvxfHf77sRHKoEzUw9_cMYSpbpNS2C+J_+8Dq4+0oi8iKopeA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix overflow hazard in timestamp_pl_interval  (Joseph Koshakow <koshy44@gmail.com>)
Список pgsql-hackers
Hi all,

Attached is a patch that fixes some overflow/underflow hazards in
`timestamp_pl_interval`. The microseconds overflow could produce
incorrect result. The month overflow would generally still result in an
error from the timestamp month field being too low, but it's still
better to catch it early.

I couldn't find any existing timestamp plus interval tests so I stuck
a new tests in `timestamp.sql`. If there's a better place, then
please let me know.

Thanks,
Joe Koshakow
Вложения

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

Предыдущее
От: Andy Fan
Дата:
Сообщение: Re: a wrong index choose when statistics is out of date
Следующее
От: Joseph Koshakow
Дата:
Сообщение: Re: Fix overflow hazard in timestamp_pl_interval