Re: Re: Use int8 for int4/int2 aggregate accumulators?
От
Peter Eisentraut
Тема
Re: Re: Use int8 for int4/int2 aggregate accumulators?
Дата
Msg-id
Pine.LNX.4.30.0108142246370.677-100000@peter.localdomain
Ответ на
Список
Дерево обсуждения
Use int8 for int4/int2 aggregate accumulators? Tom Lane <tgl@sss.pgh.pa.us>
Re: Use int8 for int4/int2 aggregate accumulators? Tom Lane <tgl@sss.pgh.pa.us>
Re: Re: Use int8 for int4/int2 aggregate accumulators? Peter Eisentraut <peter_e@gmx.net>
Re: Re: Use int8 for int4/int2 aggregate accumulators? Tom Lane <tgl@sss.pgh.pa.us>
Re: Re: Use int8 for int4/int2 aggregate accumulators? Bruce Momjian <pgman@candle.pha.pa.us>
Re: Re: Use int8 for int4/int2 aggregate accumulators? Peter Eisentraut <peter_e@gmx.net>
Re: Re: Use int8 for int4/int2 aggregate accumulators? Tom Lane <tgl@sss.pgh.pa.us>
Re: Re: Use int8 for int4/int2 aggregate accumulators? Bruce Momjian <pgman@candle.pha.pa.us>
Tom Lane writes:
> We could try to force-convert the result of an SQL function to the right
> thing, I suppose, but I'm worried that that might mask programmer errors
> more than it helps.
What I had in mind was to allow type conversion between the same
TypeCategory(). The SQL function analyzer is extraordinarily picky:
create function test(int) returns varchar as ' select substring(''PostgreSQL'' from $1);
' language sql;
ERROR: return type mismatch in function: declared to return character
varying, returns text
--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter
В списке pgsql-hackers по дате отправления