title: Make a range in postgres
body: <p>How can I make a range in a select in PostgreSQL? I'd like to have this result:</p>
  
  <pre><code>num
  ---
  1
  2
  3
  4
  5
  6
  </code></pre>
  
  <p>From a query like: </p>
  
  <pre><code>SELECT range(1,6) AS num;
  </code></pre>