title: How to set output values in user created functions in postgres
body: <p>I am trying to understand how to set an output value in a user created functions in postgres. So I made this simple function:</p>
  <pre><code>CREATE OR REPLACE FUNCTION test()
  
      RETURNS BOOLEAN AS $return_value$
          DECLARE return_value BOOLEAN;
      BEGIN
          SET return_value = TRUE
      RETURN return_value;
  END;
  $return_value$ LANGUAGE plpgsql;
  </code></pre>
  <p>I would like to understand why this spawns the error</p>
  <pre><code>ERROR:  unrecognized configuration parameter &quot;return_value&quot;
  </code></pre>