Murat Tasan <murat(dot)tasan(at)cwru(dot)edu> writes:
> => CREATE FUNCTION test_function() RETURNS SETOF table.column%TYPE AS
> $$ SELECT 1; $$ LANGUAGE SQL;
> ERROR: syntax error at or near "%" at character 59
This seems to be an oversight in the grammar: that combination simply
isn't handled. I'll see about fixing it for 8.2, but for the moment
you're just stuck with not using %TYPE and SETOF together :-(
regards, tom lane