title: How to merge all integer arrays from all records into single array in postgres
body: <p>I have a column which is of type integer array. How can I merge all of them into a single integer array?</p>
  
  <p>For example: If I execute query: </p>
  
  <pre><code>select column_name from table_name
  </code></pre>
  
  <p>I get result set as:</p>
  
  <pre><code>-[RECORD 1]----------
  column_name | {1,2,3}
  -[RECORD 2]----------
  column_name | {4,5}
  </code></pre>
  
  <p>How can I get <code>{1,2,3,4,5}</code> as final result?</p>