Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id E1316632940 for ; Fri, 9 Oct 2009 13:43:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 21478-03 for ; Fri, 9 Oct 2009 16:43:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mail.postgresql.org (Postfix) with ESMTP id 62CB76328B1 for ; Fri, 9 Oct 2009 13:43:02 -0300 (ADT) Received: by ewy18 with SMTP id 18so1385400ewy.19 for ; Fri, 09 Oct 2009 09:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=v6tiHfKejU1xNvBIhHhuZSJGYpldJkPf+X5KS1FtqhI=; b=lIcHps/ubBMUliGK1Da47Wy1cq/qXVzK8HNLVKHnZcLwDQrE5YeW58gwZLe6hiQCpC 6/pKcey7mmJzpexh3qam3P9O8XhZ15+Nim9EZODbUZqWlL5C8kUO6/119bXK8Up+rTlI Lti944AHZp2Oa8DKYU3a1cCHC0YpVjsaT9Yc0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=YLLVjqsX3Z+9IcUfMd4OvvkkM5hsk0+H490t3+V5t74HcWrG36rztjteY0fi42PARs 70uqog9i/qwIi373w4YQiSn4mxgcd+XSgQ3VSFjoA++nZb3wYayuXdvwAuRTaDLpzHda ICODHlP+ii4eLKvuiusagexEhteFtx78o2ZWc= MIME-Version: 1.0 Received: by 10.216.85.213 with SMTP id u63mr988892wee.15.1255106143900; Fri, 09 Oct 2009 09:35:43 -0700 (PDT) In-Reply-To: <4ACF0988.4080909@opencloud.com> References: <7c49e7040910081302v284f417bk6301b39e3eee474b@mail.gmail.com> <4ACF0988.4080909@opencloud.com> Date: Fri, 9 Oct 2009 17:35:43 +0100 X-Google-Sender-Auth: b5c1058bc7291d0d Message-ID: <7c49e7040910090935n6973d5c0xd9082ea926f90526@mail.gmail.com> Subject: Re: Connection Properties for FetchSize and Autocommit From: David Langton To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200910/8 X-Sequence-Number: 20010 > 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