title: postgres syntax error at or near "ON"
body: <p>I created this table:</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS config_activity_log
  (
    id                      serial primary key,
    activity_name           varchar(100) NOT NULL,
    last_config_version     varchar(50) NOT NULL,
    activity_status         varchar(100) NOT NULL DEFAULT 'Awaiting for cofman',
    cofman_last_update      bigint NOT NULL DEFAULT -1,
    is_error                boolean DEFAULT FALSE,
    activity_timestamp      timestamp DEFAULT current_timestamp
  );
  </code></pre>
  
  <p>I try to run this postgres script:</p>
  
  <pre><code>INSERT INTO config_activity_log
      (activity_name, last_config_version, activity_status)
  VALUES
      ('test awating deployment','5837-2016-08-24_09-12-22', 'Awaiting for deployment')
  ON CONFLICT (activity_name)
  DO UPDATE SET
      activity_status = EXCLUDED.activity_status
  </code></pre>
  
  <p>why do i get this syntax error?</p>
  
  <pre><code>psql:upsert_test_log.sql:7: ERROR:  syntax error at or near "ON"
  LINE 5: ON CONFLICT (activity_name)
  </code></pre>