Highgo(PostgreSQL系)ERROR: current transaction is aborted, commands ignored until end of transaction block

PostgreSQL 和 Oracle 在处理事务内 SQL 错误时的行为确实存在根本性的差异, 最近有个客户的应用系统从oracle迁移到Highgo(base on postgresql)后, 以过去的oracle开发习惯会有些不适应的地方,像在事务中遇到“ERROR: current transaction is aborted, commands ignored until end of transaction block”错误后,后续所有SQL会执行失败。