Re: Remove dependence on integer wrapping

Поиск
Список
Период
Сортировка
От Joseph Koshakow
Тема Re: Remove dependence on integer wrapping
Дата
Msg-id CAAvxfHdEsD+NFTe3Co=JVvwSeU0pEBLZW4pAN7RVJf0UR=Faeg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Remove dependence on integer wrapping  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: Remove dependence on integer wrapping
Список pgsql-hackers
On Tue, Jun 11, 2024 at 12:22 PM Nathan Bossart <nathandbossart@gmail.com> wrote:

>    I personally find that much easier to read.  Since the existing open-coded
>    overflow check is apparently insufficient, I think there's a reasonably
>    strong case for centralizing this sort of thing so that we don't continue
>    to make the same mistakes.

Sounds good, the attached patch has these changes.

>    tm2timestamp() in src/interfaces/ecpg/pgtypeslib/timestamp.c has the same
>    comment.  The code there looks very similar to the code for tm2timestamp()
>    in the other timestamp.c...

The attached patch has updated this file too. For some reason I was
under the impression that I should leave the ecpg/ files alone, though
I can't remember why.

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

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Postgresql OOM
Следующее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: 001_rep_changes.pl fails due to publisher stuck on shutdown