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

> David Langton wrote:
>>
>> defaultAutoCommit
>
> That seems a pretty dangerous setting to have :/
>
> -O
>

I'm not sure!  Without this parameter, you get a connection in
autocommit mode anyway.  If you actually set the mode yourself you get
whatever it is you want.  This parameter simply allows you to
initially set autocommit to false in the url for those (rare)
situations where it is what you want, but you can't modify the calling
application.

However, I'm certainly not any sort of JDBC expert, it just helped me
out a lot to be able to do this (along with fetchsize) to avoid
getting the whole result set sent to the driver all at once.  If I
could alter the application, I would have (and that would have been a
better place to do it!).

Regards



view thread (5+ messages)  latest in thread

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