X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 15733474E4F for ; Thu, 13 Feb 2003 19:06:35 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 5E73E474E42 for ; Thu, 13 Feb 2003 19:06:34 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h1E06U5u002168; Thu, 13 Feb 2003 19:06:30 -0500 (EST) To: Roberto Mello Cc: Josh Berkus , Johnny Kristensen , pgsql-sql@postgresql.org Subject: Re: SQL Functions vs PL/PgSQL In-reply-to: <20030213185013.GA8794@cc.usu.edu> References: <000801c2d2e0$edd32420$dc9ac450@johnny> <200302130902.05987.josh@agliodbs.com> <20030213185013.GA8794@cc.usu.edu> Comments: In-reply-to Roberto Mello message dated "Thu, 13 Feb 2003 11:50:13 -0700" Date: Thu, 13 Feb 2003 19:06:29 -0500 Message-ID: <2167.1045181189@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/305 X-Sequence-Number: 11703 Roberto Mello writes: > On Thu, Feb 13, 2003 at 09:02:05AM -0800, Josh Berkus wrote: >> 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? Yes. This is explained in the docs ... http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/plpgsql.html#PLPGSQL-OVERVIEW regards, tom lane