Issue #2487269 by alexpott, Oliver Sommersberg, zhuber: Postgres insert queries that fail in a transaction break the entire transaction