Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 09B5E2E004E for ; Wed, 9 Jan 2008 14:06:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 10400-06 for ; Wed, 9 Jan 2008 14:06:41 -0400 (AST) Received: from smtp130.iad.emailsrvr.com (smtp130.iad.emailsrvr.com [207.97.245.130]) by postgresql.org (Postfix) with ESMTP id 569472E0060 for ; Wed, 9 Jan 2008 14:06:42 -0400 (AST) Received: from relay3.r3.iad.emailsrvr.com (localhost [127.0.0.1]) by relay3.r3.iad.emailsrvr.com (SMTP Server) with ESMTP id 298AF44E6BD; Wed, 9 Jan 2008 13:06:41 -0500 (EST) Received: by relay3.r3.iad.emailsrvr.com (Authenticated sender: erik-AT-myemma.com) with ESMTP id EEC5644DF17; Wed, 9 Jan 2008 13:06:40 -0500 (EST) In-Reply-To: <772CDA49C515244FA14E34443F62E56403AFC9B8@EX-INDIA1.internal.rmplc.net> References: <772CDA49C515244FA14E34443F62E56403AFC90C@EX-INDIA1.internal.rmplc.net> <20080109050644.GF20913@alvh.no-ip.org> <772CDA49C515244FA14E34443F62E56403AFC9B8@EX-INDIA1.internal.rmplc.net> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Cc: "Alvaro Herrera" , Content-Transfer-Encoding: quoted-printable From: Erik Jones Subject: Re: After Vacuum Analyse - Procedure performance notimproved - Innner select is faster Date: Wed, 9 Jan 2008 12:06:35 -0600 To: Anoo Sivadasan Pillai X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/46 X-Sequence-Number: 28285 On Jan 9, 2008, at 12:00 AM, Anoo Sivadasan Pillai wrote: > >>> Why the procedure is not getting the performance advantage of Vacuum >>> analyse? > >> Plan caching by the function, probably. Try disconnecting the =20 >> session >> and reconnecting to prove the hypothesis. > >> If it is a recurring problem for you, you could put the SELECT under >> EXECUTE in the function. But most likely this is just a one-time >> problem. > > Is there any way to clear the cached plan manually other than > disconnecting (With the help of some commands/Configuration =20 > settings) ? Only as of 8.3. Erik Jones DBA | Emma=AE erik@myemma.com 800.595.4401 or 615.292.5888 615.292.0777 (fax) Emma helps organizations everywhere communicate & market in style. Visit us online at http://www.myemma.com