Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6700D9FA4AD for ; Wed, 18 Oct 2006 10:31:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 02634-05 for ; Wed, 18 Oct 2006 10:31:50 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.232]) by postgresql.org (Postfix) with ESMTP id 6BBF09FB289 for ; Wed, 18 Oct 2006 10:31:50 -0300 (ADT) Received: by wr-out-0506.google.com with SMTP id 55so31426wri for ; Wed, 18 Oct 2006 06:31:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=j9RZFmwFTUfQJurlfhy19rmlKrv17QGWOy2yd2gD3N4PLbD1OsQ4+GGqTJtT2Ef1jaqepJFO5pIehN8sLt+jfi2f7awdWdBpw4+o2Qxuh0xMB1Nz1u6poN705XXNnVZNPH9y7sQx/2e5CoNf74GXH9U0FhQ2A84de8HQ5VRg31Y= Received: by 10.82.131.1 with SMTP id e1mr2001869bud; Wed, 18 Oct 2006 06:31:42 -0700 (PDT) Received: by 10.78.35.18 with HTTP; Wed, 18 Oct 2006 06:31:41 -0700 (PDT) Message-ID: Date: Wed, 18 Oct 2006 09:31:41 -0400 From: "Merlin Moncure" To: "Tom Lane" Subject: Re: Jdbc/postgres performance Cc: "Bucky Jordan" , Rohit_Behl , pgsql-performance@postgresql.org In-Reply-To: <16006.1161148779@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78ED28FACE63744386D68D8A9D1CF5D4209D1C@MAIL.corp.lumeta.com> <16006.1161148779@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.256 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, SPF_PASS X-Spam-Level: X-Archive-Number: 200610/353 X-Sequence-Number: 21482 On 10/18/06, Tom Lane wrote: > "Merlin Moncure" writes: > > this is not really a jdbc issue, just a practical problem with > > prepared statements... > > Specifically, that the OP is running a 7.4 backend, which was our > first venture into prepared parameterized statements. PG 8.1 will > do better, 8.2 should do better yet. I haven't looked at 8.2 because I no longer work at my previous position, but I was significantly affected by this problem through the 8.1 release. The speed advantages of preparing certain types queries are dramatic and there are some decent use cases for pramaterizing limit and other input parameters that are difficult to guess. merlin