Emmanuel Cecchet <manu(at)frogthinker(dot)org> writes:
> - speed with error logging best effort: no use of sub-transactions but
> errors that can safely be trapped with pg_try/catch (no index violation,
There aren't any. You can *not* put a try/catch around arbitrary code
without a subtransaction. Don't even think about it.
regards, tom lane