"Greg Sabino Mullane" <greg(at)turnstep(dot)com> writes:
> CREATE OR REPLACE FUNCTION gregtest(int) RETURNS varchar
> LANGUAGE sql AS $$ SELECT 'abc'::text; $$;
Hm, I'd argue that that should be rejected. SQL functions currently
demand exact match between the declared return type and their final
SELECT command ... wonder why this case is getting past?
regards, tom lane