I have a PL/PgSQL function like this:
CREATE FUNCTION get_value(firstval integer) RETURNS SETOF mytable AS $func$ DECLARE current mytable; BEGIN SELEC