Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 61E4A9FB895 for ; Mon, 25 Jun 2007 19:07:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 83067-03 for ; Mon, 25 Jun 2007 19:07:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 607729FB9C6 for ; Mon, 25 Jun 2007 19:07:32 -0300 (ADT) Received: from 222-154-170-159.jetstream.xtra.co.nz ([222.154.170.159] helo=[10.1.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1I2wiS-0006CV-9S; Tue, 26 Jun 2007 10:07:24 +1200 Message-ID: <46803CB0.2000009@opencloud.com> Date: Tue, 26 Jun 2007 10:07:44 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Csaba Nagy CC: Dave Cramer , Postgres JDBC Subject: Re: Prepared statements, parameters and logging References: <1182768449.13328.60.camel@coppola.muc.ecircle.de> <6A182763-97EC-43C9-BD13-EE5375A83AC2@fastcrypt.com> <1182770018.13328.63.camel@coppola.muc.ecircle.de> <1182775348.13328.69.camel@coppola.muc.ecircle.de> <9537AA08-53BB-434E-9E62-F326AADED792@fastcrypt.com> <1182778475.13328.79.camel@coppola.muc.ecircle.de> In-Reply-To: <1182778475.13328.79.camel@coppola.muc.ecircle.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/99 X-Sequence-Number: 17161 Csaba Nagy wrote: (before:) > duration: 5437.499 ms statement: EXECUTE [PREPARE: SELECT > ... ] (after:) > duration: 2200.570 ms statement: EXECUTE C_220047 [PREPARE: SELECT > ... ] Also.. as to why you see the behaviour change, I'd guess that you're using log_min_duration and the plans for the queries where you are using setFetchSize() have changed from one with low startup cost to one with high startup cost due to switching from named to unnamed statements. The high startup cost plan means the very first portal execution takes longer and gets logged.. the low startup cost plan might be more expensive overall but the cost is spread out across all the portal executions, so no one execution takes long enough to get logged. -O