Re: JDBC behaviour

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Sridhar N Bamandlapally <sridhar(dot)bn1(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bill Moran <wmoran(at)potentialtech(dot)com>, Vitalii Tymchyshyn <vit(at)tym(dot)im>, Craig Ringer <craig(at)2ndquadrant(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, John R Pierce <pierce(at)hogranch(dot)com>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: JDBC behaviour
Date: 2016-02-22 10:26:47
Message-ID: CADK3HH+qEKDLYpqpvObFhYvkc3PSJjzVdrFGb0zptL1mvhUZiQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-jdbc

On 22 February 2016 at 00:35, Sridhar N Bamandlapally <sridhar(dot)bn1(at)gmail(dot)com
> wrote:

>
> I may be wrong, please correct if,
>
> can we do function overloading to add functionality with savepoint option,
> i.e. with this both will be available and its app developers to chose
>

Can you be explicit in what you are asking for please ?

As John points out you can do this now by checking every commit.

Dave Cramer

davec(at)postgresintl(dot)com
www.postgresintl.com

>
>
>
>
> On Sat, Feb 20, 2016 at 11:01 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
>> Bill Moran <wmoran(at)potentialtech(dot)com> writes:
>> > On Sat, 20 Feb 2016 16:29:09 +0000
>> > Vitalii Tymchyshyn <vit(at)tym(dot)im> wrote:
>> >> Well, I suppose replacing simple copy with procedural per-row function
>> >> would give huge performance hit. Also what method do you propose to
>> use in
>> >> the code? Savepoints?
>>
>> > Not at all. PL/PGSQL's ON ERROR handling can manage this without needing
>> > savepoints.
>>
>> Actually, plpgsql's exception blocks *are* savepoints under the hood.
>> The backend engine does not have any way of recovering from errors other
>> than a (sub)transaction abort, which means you can't do this without a
>> savepoint or equivalent.
>>
>> regards, tom lane
>>
>>
>> --
>> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Withers 2016-02-22 11:03:56 foreign key to "some rows" of a second table
Previous Message John R Pierce 2016-02-22 06:35:37 Re: JDBC behaviour

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2016-02-22 10:54:10 Re: Writing new unit tests with PostgresNode
Previous Message Pavel Stehule 2016-02-22 10:23:03 Re: psql metaqueries with \gexec

Browse pgsql-jdbc by date

  From Date Subject
Next Message Sridhar N Bamandlapally 2016-02-23 04:06:21 Re: JDBC behaviour
Previous Message John R Pierce 2016-02-22 06:35:37 Re: JDBC behaviour