title: Defining global constants in Postgresql stored function/procedures?
body: <p>I have a set of functions I have created in PostgreSql. I would like to be able to configure some behavior and limits with global constants.</p>
  
  <p>So far, I have implemented functions like these, which my functions call to retrieve the constant value:</p>
  
  <pre><code>CREATE OR REPLACE FUNCTION slice_length()
  RETURNS integer AS $$
  BEGIN
      RETURN 50;
  END; $$
  LANGUAGE plpgsql IMMUTABLE;
  </code></pre>
  
  <p>I was wondering, is there a better/smarter way to achieve this?</p>