X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id EBBFA9FB35B for ; Tue, 5 Sep 2006 12:29:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 06402-02-2 for ; Tue, 5 Sep 2006 15:28:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by postgresql.org (Postfix) with ESMTP id 612ED9FA7BA for ; Tue, 5 Sep 2006 12:28:47 -0300 (ADT) Received: by nz-out-0102.google.com with SMTP id 14so1047791nzn for ; Tue, 05 Sep 2006 08:28:46 -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=umnOXbFhjSqFb1Zy+taJEzEpqaqx+vuTQRAdgqs44sw3FG67PcSY6+I4RFuAWL8nApnmsG2vt60I7lUiZ3WnnmuiSjnITCEtDAto9Zgc099ivuZUlaQZ1dpWIIe6O6PYr5dWxbKntpETOcqGOntTY/kDnfn8+wE3z3bOnDJJKeg= Received: by 10.64.193.8 with SMTP id q8mr4804368qbf; Tue, 05 Sep 2006 08:28:46 -0700 (PDT) Received: by 10.64.96.15 with HTTP; Tue, 5 Sep 2006 08:28:46 -0700 (PDT) Message-ID: Date: Tue, 5 Sep 2006 17:28:46 +0200 From: "Guido Neitzer" To: "nilesh khode" Subject: Re: DB Performance Tuning Cc: pgsql-admin@postgresql.org In-Reply-To: <20060905150853.20091.qmail@web60521.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060905150853.20091.qmail@web60521.mail.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200609/26 X-Sequence-Number: 22940 HI. Can you try (just for testing) using a jdbc2 driver and a connection string with "protocolVersion=2" included in the jdbc connection? I had the same issue with this and the problem is, that the query optimizer sometimes decides NOT to use indexes on prepared statements (the newer JDBC drivers create use them) and bound variables. I have a solution now for WebObjects but this might not help you. cug 2006/9/5, nilesh khode : > But same I tested with JDBC, the query requires more time as compared with > existing server. -- PostgreSQL Bootcamp, Big Nerd Ranch Europe, Nov 2006 http://www.bignerdranch.com/news/2006-08-21.shtml