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)
Список
Дерево обсуждения
Re: Checking for overflow of integer arithmetic "Dave Page" <dpage@vale-housing.co.uk>
On Sun, Oct 03, 2004 at 15:38:52 -0400, Tom Lane 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
Дата: