title: plpgsql: calling a function with 2 OUT parameters
body: <p>I'm trying to fetch to values from a plpgsql function with 2 OUT paramenters but I have some problem.</p>
  <p>These are the functions:</p>
  <pre><code>CREATE OR REPLACE FUNCTION get_test(OUT x text, OUT y text)
  AS $$
  BEGIN
     x := 1;
     y := 2;
  END;
  $$  LANGUAGE plpgsql;
  ----------------------------------------------------------------
  
  CREATE OR REPLACE FUNCTION get_test_read()
  RETURNS VOID AS $$
  DECLARE
     xx text;
     yy text;
  BEGIN
  
     SELECT get_test() INTO xx, yy;
     
     RAISE INFO 'x: &lt;%&gt;', xx;
     RAISE INFO 'y: &lt;%&gt;', yy;
  
  END;
  $$  LANGUAGE plpgsql;
  </code></pre>
  <hr />
  <p>The output of the command:</p>
  <blockquote>
  <p>select get_test_read();</p>
  <p>INFO:  x: &lt;(1,2)</p>
  <p>INFO:  y: &lt;&gt;</p>
  <p>get_test_read</p>
  <hr />
  </blockquote>
  <p>So both the values go to the first parameter.
  I cannot find some example on how to call a function like this.</p>