title: How to compare two arrays and pick only the non matching elements In postgres
body: <p>How can I pick only the non matching elements between two arrays.</p>
  
  <p>Example:</p>
  
  <pre><code>base_array [12,3,5,7,8]
  temp_array [3,7,8]
  </code></pre>
  
  <p>So here I want to compare both the arrays and remove the matching elements from the base array.</p>
  
  <p>Now base_array should be like <code>[12,5]</code></p>