Re: AW: type conversion discussion

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: AW: type conversion discussion
Дата
Msg-id Pine.LNX.4.21.0005190413370.349-100000@localhost.localdomain
обсуждение исходный текст
Ответ на Re: AW: type conversion discussion  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: AW: type conversion discussion  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane writes:

> (The SQL guys probably did not foresee people implementing NUMERIC
> with wider range than FLOAT ;-) ... but the fact that we did so
> doesn't give us license to ignore that aspect of the spec ...)

I think that must have been it, why else would they (implicitly) rank
floats above numerics. If we submit to that notion, then I agree with the
promotion tree you suggested.

The problem remains that upward casting will not be guaranteed to work all
the time, which is something that needs to be addressed; in potentially
unpretty ways, because not every casting decision is necessarily a linear
ladder-climb, it might be affected by other casting decisions going on in
parallel. (The workaround here could be to convert numerics that are wider
than floats to `infinity' :-)


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] Foreign keys breaks tables permissions
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: OO Patch