关于current transaction is aborted, commands ignored until end of transaction block与ON_ERROR_ROLLBACK
psql相关的事务模式变量ON_ERROR_ROLLBACK,ON_ERROR_STOPpostgres=#\setON_ERROR_ROLLBACKon如果开启ON_ERROR_ROLLBACK,会在每一句SQL前设置隐形的savepoint,可以继续下面的SQL,而不用全部回滚先举例说明该参数的效果:postgres=#\setON_ERROR_ROLLBACKon//在当前会话设置on_er