Re: Rejection of the smallest int8

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Rejection of the smallest int8
Дата
Msg-id 13599.1006355169@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Rejection of the smallest int8  (sugita@sra.co.jp)
Ответы Re: Rejection of the smallest int8  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Rejection of the smallest int8  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Rejection of the smallest int8  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
sugita@sra.co.jp writes:
> Attached is a patch to accept the smallest value of int8.

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 ...

            regards, tom lane

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

Предыдущее
От: sugita@sra.co.jp
Дата:
Сообщение: Rejection of the smallest int8
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Rejection of the smallest int8