title: How to get the absolute value of an interval
body: <p>Consider the following statement:</p>
  
  <pre><code>select interval '-1 hours'
  </code></pre>
  
  <p>I couldn't figure out how to get the absolute value of an interval, i.e. to toggle or remove the sign if negative. The only thing that came to my mind is the following:</p>
  
  <pre><code>select abs(extract(epoch from interval '-1 hours'))
  </code></pre>
  
  <p>But I wonder if there is a more elegant way (a way that preserves the interval type)?</p>