Re: problem with new autocommit config parameter and jdbc - Mailing list pgsql-hackers

From Tom Lane
Subject Re: problem with new autocommit config parameter and jdbc
Date
Msg-id 12677.1031597636@sss.pgh.pa.us
Whole thread Raw
In response to Re: problem with new autocommit config parameter and jdbc  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: problem with new autocommit config parameter and jdbc  (snpe <snpe@snpe.co.yu>)
Re: [JDBC] problem with new autocommit config parameter  (Curt Sampson <cjs@cynic.net>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Barry Lind wrote:
>> How should client interfaces handle this new autocommit feature?  Is it
>> best to just issue a set at the beginning of the connection to ensure
>> that it is always on?

> Yes, I thought that was the best fix for apps that can't deal with
> autocommit being off.

If autocommit=off really seriously breaks JDBC then I don't think a
simple SET command at the start of a session is going to do that much
to improve robustness.  What if the user issues another SET to turn it
on?

I'd suggest just documenting that it is broken and you can't use it,
until such time as you can get it fixed.  Band-aids that only partially
cover the problem don't seem worth the effort to me.

In general I think that autocommit=off is probably going to be very
poorly supported in the 7.3 release.  We can document it as being
"work in progress, use at your own risk".

            regards, tom lane

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Proposal: Solving the "Return proper effected tuple
Next
From: Tom Lane
Date:
Subject: Re: Impossible to import pg_dumpall from 7.2.2 to 7.3b1