X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A4C93474E5C for ; Thu, 13 Feb 2003 13:43:14 -0500 (EST) Received: from brasileiro.net (slxwy.dorms.usu.edu [129.123.227.56]) by postgresql.org (Postfix) with ESMTP id 31C15474E42 for ; Thu, 13 Feb 2003 13:43:14 -0500 (EST) Received: from roberto by brasileiro.net with local (Exim 3.35 #1 (Debian)) id 18jOR3-0002JC-00; Thu, 13 Feb 2003 11:50:13 -0700 Date: Thu, 13 Feb 2003 11:50:13 -0700 From: Roberto Mello To: Josh Berkus Cc: Johnny Kristensen , pgsql-sql@postgresql.org Subject: Re: SQL Functions vs PL/PgSQL Message-ID: <20030213185013.GA8794@cc.usu.edu> References: <000801c2d2e0$edd32420$dc9ac450@johnny> <200302130902.05987.josh@agliodbs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <200302130902.05987.josh@agliodbs.com> User-Agent: Mutt/1.4i X-message-flag: Please consider using an e-mail program other than Outlook. It's insecure. X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/293 X-Sequence-Number: 11691 On Thu, Feb 13, 2003 at 09:02:05AM -0800, Josh Berkus wrote: > Johnny, > > > Does postgres store execution plan's for user-defined SQL functions as the > > PL/pgSQL interpreter does. And if so - will this only be prepared after an > > initial call to the function? Can't seem to find this information in the > > docs!? Thanks, > > Unless you know something I don't, I do not believe that PL/pgSQL stores > execution plans for functions. AFAIK execution plans for PL/pgSQL functions were cached once per backend. No? -Roberto -- +----| Roberto Mello - http://www.brasileiro.net/ |------+ + Computer Science Graduate Student, Utah State University + + USU Free Software & GNU/Linux Club - http://fslc.usu.edu/ + If CPU < 486 then upgrade (486,OS/2 3.0) : while < 586...