pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Langton <djlangton+pgjdbc@googlemail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Connection Properties for FetchSize and Autocommit
Date: Mon, 12 Oct 2009 17:35:21 +0100
Message-ID: <7c49e7040910120935p16a9bd25p5dea5098a04a6e5f@mail.gmail.com> (raw)
In-Reply-To: <7c49e7040910120932o6d15aceai6304c01e8f2ea4d9@mail.gmail.com>
References: <7c49e7040910081302v284f417bk6301b39e3eee474b@mail.gmail.com>
	<4ACF0988.4080909@opencloud.com>
	<7c49e7040910090935n6973d5c0xd9082ea926f90526@mail.gmail.com>
	<4AD25958.9010906@opencloud.com>
	<7c49e7040910120932o6d15aceai6304c01e8f2ea4d9@mail.gmail.com>

>
> The issue I see is that it can cause silent data loss. An application that
> expects the documented API default - autocommit on - and just does some
> UPDATEs is going to throw away all its changes if autocommit is mysteriously
> off by default, because it's never going to call commit().
>
> -O
>

Yes, of course you are right and it would be very bad indeed.  I guess
I wasn't thinking of the impact properly (the app I am working with
isn't doing updates).

Maybe I'll revisit this again one day, but think about it a bit more first!



view thread (5+ messages)

Message-ID: <7c49e7040910120935p16a9bd25p5dea5098a04a6e5f@mail.gmail.com>
Permalink:  ../7c49e7040910120935p16a9bd25p5dea5098a04a6e5f@mail.gmail.com/
Also on:    postgresql.org/message-id/7c49e7040910120935p16a9bd25p5dea5098a04a6e5f@mail.gmail.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: djlangton+pgjdbc@googlemail.com
  Subject: Re: Connection Properties for FetchSize and Autocommit
  In-Reply-To: <7c49e7040910120935p16a9bd25p5dea5098a04a6e5f@mail.gmail.com>
  References: <7c49e7040910081302v284f417bk6301b39e3eee474b@mail.gmail.com> <4ACF0988.4080909@opencloud.com> <7c49e7040910090935n6973d5c0xd9082ea926f90526@mail.gmail.com> <4AD25958.9010906@opencloud.com> <7c49e7040910120932o6d15aceai6304c01e8f2ea4d9@mail.gmail.com> <7c49e7040910120935p16a9bd25p5dea5098a04a6e5f@mail.gmail.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