Re: Error on failed COMMIT

Dave Cramer <davecramer@postgres.rocks>

From: Dave Cramer <davecramer@postgres.rocks>
To: Bruce Momjian <bruce@momjian.us>
Cc: Robert Haas <robertmhaas@gmail.com>, Vik Fearing <vik@postgresfriends.org>, Tom Lane <tgl@sss.pgh.pa.us>, Laurenz Albe <laurenz.albe@cybertec.at>, Vladimir Sitnikov <sitnikov.vladimir@gmail.com>, Shay Rojansky <roji@roji.org>, "Haumacher, Bernhard" <haui@haumacher.de>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-03-17T23:32:00Z
Lists: pgsql-hackers
On Tue, 17 Mar 2020 at 19:23, Bruce Momjian <bruce@momjian.us> wrote:

> On Tue, Mar 17, 2020 at 07:15:05PM -0400, Dave Cramer wrote:
> > On Tue, 17 Mar 2020 at 16:47, Bruce Momjian <bruce@momjian.us> wrote:
> >     Third, the idea that individual interfaces, e.g. JDBC, should throw
> an
> >     error in this case while the server just changes the COMMIT return
> tag
> >     to ROLLBACK is confusing.  People regularly test SQL commands in the
> >     server before writing applications or while debugging, and a behavior
> >     mismatch would cause confusion.
> >
> >
> > I'm not sure what you mean by this. The server would throw an error.
>
> I am saying it is not wise to have interfaces behaving differently than
> the server, for the reasons stated above.
>
> Agreed and this is why I think it is important for the server to be
defining the behaviour instead of each interface deciding how to handle
this situation.


Dave Cramer
www.postgres.rocks

>
>