pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Rotteveel <mark@lawinegevaar.nl>
To: List <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC behaviour
Date: Thu, 18 Feb 2016 13:22:15 +0100
Message-ID: <22d3da56ff9f987ede3d18de6e49423e@imap.procolix.com> (raw)
In-Reply-To: <CADK3HHKf+mwzr+N8gPj1-CNi2ohyVcf3fuNgtpBHpEOeUnFB6A@mail.gmail.com>
References: <VisenaEmail.10a.1f49c7f5f62b57b3.152f4086070@tc7-visena>
	<d36d46129dd36118a94f77370fd52cbf@imap.procolix.com>
	<CADK3HHKf+mwzr+N8gPj1-CNi2ohyVcf3fuNgtpBHpEOeUnFB6A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

On Thu, 18 Feb 2016 07:15:11 -0500, Dave Cramer <pg@fastcrypt.com> wrote:
> On 18 February 2016 at 07:09, Mark Rotteveel <mark@lawinegevaar.nl>
wrote:
> 
>> On Thu, 18 Feb 2016 11:59:50 +0100 (CET), Andreas Joseph Krogh
>> <andreas@visena.com> wrote:

>> > You simply cannot have batch-inserts in the same transaction and
>> expecting
>> > the
>> > batch not to fail if one of the statements in the batch fails.
>>
>> On a lot of other database systems, that is exactly how it works. If a
>> statement fails, that one statement is backed out (rolled back), and it
>> is
>> still up to the user to decide if he wants to commit or rollback the
>> statements that did succeed.
>>
> 
> This behaviour is an artifact of PostgreSQL. If you want to change the
> transaction semantics of PostgreSQL then pgsql-hackers is the place to
take
> this up.
> 
> JDBC is just an interface. We aren't going to rewrite the backend
semantics
> to meet everyones needs/wants.

I understand that and indeed this isn't something that should be handled
by the driver, however some of the response in this thread seem to think it
is an absurd expectation from the OP that failure of one statement should
still allow a commit. Which it isn't if you look at what other database
systems do.

Mark


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (73+ messages)  latest in thread

Message-ID: <22d3da56ff9f987ede3d18de6e49423e@imap.procolix.com>
Permalink:  ../22d3da56ff9f987ede3d18de6e49423e@imap.procolix.com/
Also on:    postgresql.org/message-id/22d3da56ff9f987ede3d18de6e49423e@imap.procolix.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mark@lawinegevaar.nl
  Subject: Re: JDBC behaviour
  In-Reply-To: <22d3da56ff9f987ede3d18de6e49423e@imap.procolix.com>
  References: <VisenaEmail.10a.1f49c7f5f62b57b3.152f4086070@tc7-visena> <d36d46129dd36118a94f77370fd52cbf@imap.procolix.com> <CADK3HHKf+mwzr+N8gPj1-CNi2ohyVcf3fuNgtpBHpEOeUnFB6A@mail.gmail.com> <22d3da56ff9f987ede3d18de6e49423e@imap.procolix.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox