title: eliminate duplicate array values in postgres
body: <p>I have an array of type <code>bigint</code>, how can I remove the duplicate values in that array?</p>
  
  <p>Ex: <code>array[1234, 5343, 6353, 1234, 1234]</code></p>
  
  <p>I should get <code>array[1234, 5343, 6353, ...]</code></p>
  
  <p>I tested out the example <code>SELECT uniq(sort('{1,2,3,2,1}'::int[]))</code> in the postgres manual but it is not working.</p>