X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 61BDE3A3BC2 for ; Mon, 25 Oct 2004 10:16:04 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04785-08 for ; Mon, 25 Oct 2004 09:16:01 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id D03EE3A3B68 for ; Mon, 25 Oct 2004 10:16:01 +0100 (BST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CM0xI-0004P9-00; Mon, 25 Oct 2004 22:15:56 +1300 Message-ID: <417CC468.7030704@opencloud.com> Date: Mon, 25 Oct 2004 22:16:24 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (X11/20041021) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: Problems with protocol V3 after migration to latest driver References: <8BCBF9DB739F034B87FE7C7D30EAE55C026AC203@hqex2k.francoudi.com> In-Reply-To: X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/258 X-Sequence-Number: 11363 Kris Jurka wrote: > The first time through it does not fail because the driver > needs to query the backend to get some setup information for large objects > which starts a transaction. Sounds like that is (another) bug .. it should be using the QUERY_SUPPRESS_BEGIN flag for driver-generated queries to avoid starting a transaction accidentally. I fixed that in various other places but didn't think to check the LO code. Also, any thoughts on making the LO vs. bytea behaviour a separate option, rather than lumping it in with 7.1 compatibility? It seems quite possible that you might want to use LOs for get/setBytes() but use the most up to date driver behaviour elsewhere. -O