whiplash <whiplash(at)bss(dot)org(dot)ua> writes:
> Hello! I have C-language stored function like this:
> CREATE FUNCTION testfunc ( x real, y real )
> RETURNS real AS
> 'testfunc'
> LANGUAGE C STRICT;
> If i use this function (SELECT testfunc ( 0.1, 0.2 )) I get result with
> type "double precision".
What's your basis for asserting that? The function is clearly defined
to return float4.
regards, tom lane