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 5E49755D29 for ; Fri, 25 Feb 2005 20:42:25 +0000 (GMT) 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 27384-03 for ; Fri, 25 Feb 2005 20:42:16 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 6DF6B55478 for ; Fri, 25 Feb 2005 20:42:16 +0000 (GMT) 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 1D4mI1-0007ny-00; Sat, 26 Feb 2005 09:42:21 +1300 Message-ID: <421F8DA7.2070202@opencloud.com> Date: Sat, 26 Feb 2005 09:42:15 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Smith Cc: Alan Stange , pgsql-jdbc@postgresql.org Subject: Re: setFetchSize question References: <421F4E76.508@rentec.com> <1109348470.14394.43.camel@playpen.candata.com> In-Reply-To: <1109348470.14394.43.camel@playpen.candata.com> X-Enigmail-Version: 0.89.5.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.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/206 X-Sequence-Number: 12386 Dave Smith wrote: > Funny, I'm trying to do the same thing. I think the problem is that V3 > protocol (bind/execute) , Postgresql does not log the portal command > just the SQL statement. I'm busy trying to find the link in the archives > to this problem .. Yeah, V3 introduces some logging issues. Only the initial Parse is logged, but a) just because we ran a Parse doesn't actually mean the query has been run and b) a single Parse might be followed by multiple Bind/Execute pairs that actually run the query multiple times (and those Bind/Executes might happen hours after the Parse!). So statement logging no longer gives you a good idea of what queries are being executed. Fixing this on the server side is on my todo list but not too high at the moment. The portal-execution thing is similar -- for a single query execution, there might be multiple Executes sent for the same portal (with a max-rows limit in place). That's less of a logging issue since it's logically the same query running across all of those Executes, we're just asking for the results one bit at a time. -O