Re: Error on failed COMMIT - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Error on failed COMMIT
Date
Msg-id 20200217233004.GA18544@alvherre.pgsql
Whole thread Raw
In response to Re: Error on failed COMMIT  (Dave Cramer <davecramer@postgres.rocks>)
List pgsql-hackers
On 2020-Feb-14, Dave Cramer wrote:

> On Fri, 14 Feb 2020 at 15:19, Alvaro Herrera <alvherre@2ndquadrant.com>
> wrote:
> 
> > Do you mean "if con.commit() results in a rollback, then an exception is
> > thrown, unless the parameter XYZ is set to PQR"?
> 
> No. JDBC has a number of connection parameters which change internal
> semantics of various things.
> 
> I was proposing to have a connection parameter which would be
> throwExceptionOnFailedCommit (or something) which would do what it says.
> 
> None of this would touch the server. It would just change the driver
> semantics.

That's exactly what I was saying.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Jesse Zhang
Date:
Subject: Re: Resolving the python 2 -> python 3 mess
Next
From: Tom Lane
Date:
Subject: Re: pgindent && weirdness