From: | Craig Ringer <craig(at)2ndquadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | 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:07:20 |
Message-ID: | CAMsr+YFkcyjR_aDEQHXQ2_tb_mxRe7y-_tuhdNi25hYs0ztKpA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-jdbc |
On 23 February 2016 at 21:34, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Sat, Feb 20, 2016 at 4:14 PM, Craig Ringer <craig(at)2ndquadrant(dot)com>
> wrote:
> >> currently PostgreSQL::"set autocommit to FALSE ( not supported )
> >
> > This also does not make any sense.
> >
> > PgJDBC does support turning autocommit off. So I don't know in what way
> it's
> > "not supported".
>
> I believe Sridhar is imagining that someday "set autocommit to false"
> might be a command that the server would understand.
>
... I guess. Yeah.
Oracle's SQL*Plus has the concept of turning autocommit off, but I suspect
that's client-side behaviour.
http://docs.oracle.com/cd/B19306_01/server.102/b14357/ch12040.htm
I can't really imagine how it'd make sense on the server side, given how
the protocol works etc. Nor is it necessary since the desired behaviour is
entirely controlled on the client side.
We could have a server mode that did silent, automatic savepoints and
rolled back to a savepoint automatically on ERROR. That wouldn't be the
same as autocommit, but appears to be what Sridhar actually needs. There's
even the remotest chance someone could come up with a patch that might be
acceptable, but I don't know of anyone who'd want to do it when it can be
done well enough client side.
I think Sridhar is confusing autocommit with other DBMSes behaviour of
automatically rolling back failed statements without affecting the rest of
the transaction. These are not the same thing.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-02-23 14:46:53 | Re: [HACKERS] JDBC behaviour |
Previous Message | Craig Ringer | 2016-02-23 13:48:37 | Re: JDBC behaviour |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-02-23 14:46:53 | Re: [HACKERS] JDBC behaviour |
Previous Message | Robert Haas | 2016-02-23 13:51:59 | Re: Declarative partitioning |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-02-23 14:46:53 | Re: [HACKERS] JDBC behaviour |
Previous Message | Craig Ringer | 2016-02-23 13:48:37 | Re: JDBC behaviour |