X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 56EF2D1CA77 for ; Tue, 6 Apr 2004 20:43:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 12638-04 for ; Tue, 6 Apr 2004 20:43:06 -0300 (ADT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 94B8ED1CA50 for ; Tue, 6 Apr 2004 20:43:03 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BB0Dg-0004ox-00; Wed, 07 Apr 2004 11:43:04 +1200 Message-ID: <40734086.3000308@opencloud.com> Date: Wed, 07 Apr 2004 11:43:02 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Wall Cc: pgsql-jdbc@postgresql.org Subject: Re: blob without largeobject api References: <40712C3B.4070606@expot.it> <4071D255.3000504@opencloud.com> <40729A9A.3060001@axa.it> <111c01c41c00$96c706a0$3201a8c0@rasta> In-Reply-To: <111c01c41c00$96c706a0$3201a8c0@rasta> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/60 X-Sequence-Number: 9789 David Wall wrote: [.. using LOs ..] > And yes, you do need to wrap this in a transaction, but that should be > standard operating procedure for anything but toy applications in my opinion > since who wants to deal with the troubles of out of sync data. And if you happen to be grabbing all the data you need in one SELECT, and the transaction is readonly.. why would you not want to use autocommit? We had exactly this case in our (distinctly non-toy) application here, and it was a PITA to work around when we were using LOs. We use bytea now, mostly because of this lack of transparency when using LOs -- with a LO, the data isn't really part of the table, and it bites you in all sorts of strange ways if you try to treat it as if it was "just another field". -O