Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C8153650548 for ; Thu, 10 Jul 2008 06:25:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 20768-01 for ; Thu, 10 Jul 2008 06:25:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from vilnius.balt.net (vilnius.balt.net [195.14.170.14]) by postgresql.org (Postfix) with ESMTP id BCF5C65052F for ; Thu, 10 Jul 2008 06:25:33 -0300 (ADT) Received: from nSoft.lt (unknown [217.117.29.29]) by vilnius.balt.net (Postfix) with ESMTP id A8DA33A1311; Thu, 10 Jul 2008 12:25:29 +0300 (EEST) Received: from [192.168.16.3] (unknown [192.168.16.3]) by nSoft.lt (Postfix) with ESMTP id 12E15BEE07; Thu, 10 Jul 2008 12:53:20 +0000 (GMT) Message-ID: <4875D589.1030107@nsoft.lt> Date: Thu, 10 Jul 2008 12:25:29 +0300 From: Julius Tuskenis User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: s.borse@direction.biz CC: pgsql-admin@postgresql.org Subject: Re: query optimization References: <1215680493.2113.26.camel@dss-052.dsslp.com> In-Reply-To: <1215680493.2113.26.camel@dss-052.dsslp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.166 tagged_above=0 required=5 tests=AWL=0.166 X-Spam-Level: X-Archive-Number: 200807/99 X-Sequence-Number: 29709 Hello, Suresh Maybe its taking long for the first time, and then its faster? Did you noticed any circumstances under witch your query takes longer to execute? Suresh Borse rašė: > Dear All, > > I am facing very strange problem in postgres while executing the view. > > When I execute the view some times it takes few milliseconds, > sometimes it take several seconds and some times doesn't execute. > > I tried to troubleshoot using the explain plan method. But explain > plan also changes for each execution. > > Can anybody help me for troubleshooting and for resolving the > performance issue. > > > Thanks & Regards, > Suresh Borse > > -- Julius Tuskenis Programavimo skyriaus vadovas UAB nSoft mob. +37068233050