Re: Prefered Types

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Prefered Types
Дата
Msg-id 1304803492.15989.23.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: Prefered Types  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
On fre, 2011-05-06 at 18:38 -0300, Alvaro Herrera wrote:
> I remember that one of the problems put forth against this idea was
> that stuff like int2+int2 which currently returns int2 would have to
> be changed to return int4, otherwise it risks overflow which it
> currently doesn't (not because the operator would change, but rather
> because some expressions would be lexed differently).  And so on with
> other operators.  I am not sure how severe this problem is for users
> in practice -- my uneducated guess is that mostly they will not care
> about such changes.

Modulo backward compatibility concerns, I don't think it would
necessarily be wrong if int2+int2 returned int4.  sum(int2) returns
int8, and no one seems bothered by that.



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Why not install pgstattuple by default?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Why not install pgstattuple by default?