title: Catch all error psql function exception
body: <p>I am writing an function with exception catching and ignoring. I want to catch all the exceptions and just ignore it. Is there anyway to catch all the exceptions and not individually?</p>
  
  <pre><code>CREATE OR REPLACE FUNCTION ADD_TABLE_TO_ARCHIVE (a TEXT, b TEXT)
  RETURNS INTEGER AS $SUCCESS$
  DECLARE SUCCESS INTEGER;
  BEGIN
      SUCCESS = 0;
      BEGIN
          UPDATE ARCHIVE_STATUS
          SET *****
          WHERE ***;
          SUCCESS = 1;
      EXCEPTION
          WHEN UNIQUE_VIOLATION 
          SUCCESS = 0;
      END;
  
     RETURN SUCCESS;
  END;
  $SUCCESS$ LANGUAGE plpgsql;
  </code></pre>
  
  <p>In place of unique exception, it should be any exception...</p>