title: Return table in stored procedure postgresql
body: <p>I want to return the whole table with <em>stored procedure</em> not <em>function</em></p>
  
  <p>my code is:</p>
  
  <pre><code>CREATE OR REPLACE PROCEDURE public.test()
  
  RETURN TABLE (
       id   numeric
     , test varchar
     ) AS  -- Results  -- remove this
  $func$
  
  BEGIN
      RETURN QUERY
      SELECT * 
      FROM public.test
  
  END
  $func$ LANGUAGE plpgsql;
  </code></pre>
  
  <p>but its not works.</p>