Re: Rejection of the smallest int8

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Rejection of the smallest int8
Дата
Msg-id Pine.LNX.4.30.0111212019560.614-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Rejection of the smallest int8  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane writes:

> This has been proposed before.  The problem with it is that it's
> not portable: the C standard does not specify the direction of rounding
> of integer division when the dividend is negative.  So the test
> inside the loop that tries to detect overflow would be likely to fail
> on some machines.
>
> If you can see a way around that, we're all ears ...

Use strtoll/strtoull if available.  They should be on "most" systems
anyway.

--
Peter Eisentraut   peter_e@gmx.net


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Rejection of the smallest int8
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: More FK patches