title: Postgres exception handling - syntax error at or near "EXCEPTION"
body: <p>I'm trying to understand expections in postgresql. Maybe my problem is easy but not for me. Can someone tell me what is wrong with this query ?
  ERROR: syntax error at or near "EXCEPTION"</p>
  
  <pre><code>BEGIN;
  select 1;
  EXCEPTION 
      WHEN others THEN    
          RAISE INFO 'Caught';
  END;
  </code></pre>