Re: pgsql: Provide overflow safe integer math inline functions.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: pgsql: Provide overflow safe integer math inline functions.
Дата
Msg-id CA+TgmoaBj4vDrbGK15mf-nvQ6N=fD7SBJSFr0Vi6Edoy0x2E3g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Provide overflow safe integer math inline functions.  (Christoph Berg <myon@debian.org>)
Ответы Re: pgsql: Provide overflow safe integer math inline functions.  (Andres Freund <andres@anarazel.de>)
Список pgsql-committers
On Wed, Dec 13, 2017 at 5:10 AM, Christoph Berg <myon@debian.org> wrote:
> Re: Andres Freund 2017-12-13 <E1eOvQF-00075r-Cy@gemulon.postgresql.org>
>> Provide overflow safe integer math inline functions.
>
> The new _overflow functions have buggy comments:
>
> /*
>  * If a - b overflows, return true, otherwise store the result of a + b into
>  * *result.                                                         ^ there

What's wrong with that?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Christoph Berg
Дата:
Сообщение: Re: pgsql: Provide overflow safe integer math inline functions.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Fix crash when using CALL on an aggregate