add "\set ON_ERROR_STOP on" as first command
add "\set ON_ERROR_STOP on" as first command