title: How to return a table, rows or record from a function in PostgreSQL 9?
body: <p>I have a table called <code>person</code> which has <code>id,name,status</code> and I want to return rows as a result of a function with 1 parameter (name). 
  Can anyone help me? Please make it easy, because im very noob in PostgreSQL.</p>
  
  <p>This is my code from a normal function </p>
  
  <pre><code>create or replace function fn_list(vname varchar) returns void as $$
  begin
      SELECT id,name,status from usuario WHERE name= vname;
  end;
  $$ language plpgsql;
  </code></pre>
  
  <p>I know I'm returning a void function but how can I do if I want a list of rows?</p>