X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B124BD1B8A5 for ; Fri, 29 Aug 2003 15:54:39 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 34807-05 for ; Fri, 29 Aug 2003 12:54:08 -0300 (ADT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id 33AE6D1B8AD for ; Fri, 29 Aug 2003 12:54:07 -0300 (ADT) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 19slZa-00050U-00 for ; Fri, 29 Aug 2003 11:54:02 -0400 Received: by dba2 (Postfix, from userid 1019) id D2084D0C0; Fri, 29 Aug 2003 11:54:01 -0400 (EDT) Date: Fri, 29 Aug 2003 11:54:01 -0400 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: PL/pgSQL functions - text / varchar - havy performance Message-ID: <20030829155401.GM19388@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-performance@postgresql.org References: <200308291554.46748.o.siegmar@vitrado.de> <3F4F6754.8050900@potentialtech.com> <20030829150151.GI19388@libertyrms.info> <3F4F7275.5030203@potentialtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F4F7275.5030203@potentialtech.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/500 X-Sequence-Number: 3316 On Fri, Aug 29, 2003 at 11:34:13AM -0400, Bill Moran wrote: > Have any explanation as to why that function is so slow? Sorry, no. It might have to do with the planning, though. I believe the funciton is planned the first time it is run. It may need to be marked as "STABLE" in order to use any indexes, and that could be part of the problem. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110