create function teste( teste varchar ) returns setof record AS $$
begin
execute teste;
return ;
end;
$$ language plpgsql;
select teste ('select * from public.opcional ');
Is this returning me a record with nothing like how do I display all the data in the optional table?