Re: Checking for overflow of integer arithmetic

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Checking for overflow of integer arithmetic
Дата
Msg-id 20041003232942.GA24542@wolff.to
обсуждение исходный текст
Ответ на Checking for overflow of integer arithmetic  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Oct 03, 2004 at 15:38:52 -0400, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 1. Does anyone object to applying this for 8.0?  I think we already had
> consensus that it's a good idea, but if not now's the time to speak up.
> (There are a couple of regression tests that fail and will need to be
> adjusted, if that influences anyone's thinking.)

I think this should go in. I think not detecting overflow is really a bug.

> 2. For the int2 and int8 operators, should we stick to a one-size-fits-all
> message "integer out of range", or be more specific: "smallint out of
> range" and "bigint out of range"?  The existing messages are not
> completely consistent about this.  I'm inclined to go with mentioning
> the specific type but I'm not dead set on it.

I think giving the type info will be helpful for debugging.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Mislabeled timestamp functions (was Re: [SQL] [NOVICE] date_trunc'd timestamp index possible?)
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: Checking for overflow of integer arithmetic