I was wondering at what point a transaction actually fails in Postgres. By this I mean stop working, and return an error. Is it after the first failed query? Does it try all queries and then return failure? Hopefully it fails fast on first failed query, but I don’t know for sure.
For instance, if I have a transaction with 5 insert statements, but insert 2 fails, does it stop right then and return an error?
Thanks