Re: [HACKERS] JDBC behaviour

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Craig Ringer <craig(at)2ndquadrant(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Sridhar N Bamandlapally <sridhar(dot)bn1(at)gmail(dot)com>, PostgreSQL-hackers <pgsql-hackers(at)postgresql(dot)org>, List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [HACKERS] JDBC behaviour
Date: 2016-02-23 14:46:53
Message-ID: 31404.1456238813@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-jdbc

Craig Ringer <craig(at)2ndquadrant(dot)com> writes:
> On 23 February 2016 at 21:34, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> I believe Sridhar is imagining that someday "set autocommit to false"
>> might be a command that the server would understand.

> ... I guess. Yeah.

We've been there, we've done that. We're not doing it again.
Cf commits 26993b291, f85f43dfb, 525a48991, as well as a whole
bunch of thrashing in between the first two (grep the git logs
for "autocommit" to find most of it). It's a bit harder to locate
relevant email threads, because searching for just "autocommit"
yields too many hits; but here's one long thread from when we were
starting to realize that it wasn't working very well:
http://www.postgresql.org/message-id/flat/3E54526A(dot)121EBEE5(at)tpf(dot)co(dot)jp

In all, this was one of the more searing experiences contributing
to what's now received project wisdom that GUCs that change
fundamental semantics are a bad idea.

> Oracle's SQL*Plus has the concept of turning autocommit off, but I suspect
> that's client-side behaviour.

The conclusion we came to back in 2002-2003 was that client-side
autocommit was the only behavior we could sanely support. I see
no reason to think that a fresh experiment in the same direction
would produce a different result.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sherrie Kubis 2016-02-23 15:51:58 PostgreSQL flavors
Previous Message Craig Ringer 2016-02-23 14:07:20 Re: [HACKERS] JDBC behaviour

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-02-23 14:53:43 Re: tab completion for CREATE USER MAPPING
Previous Message Craig Ringer 2016-02-23 14:07:20 Re: [HACKERS] JDBC behaviour

Browse pgsql-jdbc by date

  From Date Subject
Next Message Craig Ringer 2016-02-24 02:14:50 Re: [HACKERS] JDBC behaviour
Previous Message Craig Ringer 2016-02-23 14:07:20 Re: [HACKERS] JDBC behaviour