title: Postgresql upsert return id on conflict?
body: <p>I have the following query right now which returns the id after a successful insert</p>
  
  <pre><code>INSERT INTO match (match_id) values(?) ON CONFLICT DO NOTHING RETURNING id
  </code></pre>
  
  <p>How can I make this return the <code>id</code> of the row which already exists on conflict?</p>