X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 245E4D1C4BF for ; Sun, 3 Aug 2003 23:21:28 +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 61772-05 for ; Sun, 3 Aug 2003 20:20:16 -0300 (ADT) Received: from smtp.noos.fr (nan-smtp-12.noos.net [212.198.2.83]) by svr1.postgresql.org (Postfix) with ESMTP id 39A45D1C9E5 for ; Sun, 3 Aug 2003 20:21:16 -0300 (ADT) Received: (qmail 41221791 invoked by uid 0); 3 Aug 2003 23:21:18 -0000 Received: from unknown (HELO gmendola) ([212.198.37.110]) (envelope-sender ) by 212.198.2.83 (qmail-ldap-1.03) with SMTP for ; 3 Aug 2003 23:21:18 -0000 Message-ID: <005b01c35a15$cfbd7960$10d4a8c0@mm.eutelsat.org> From: "Mendola Gaetano" To: Cc: "Tom Lane" References: <20030803131931.GD4326@sch01r01.nexit.nl> <26941.1059926135@sss.pgh.pa.us> <3F2D4B3B.3050405@joeconway.com> <6571.1059934474@sss.pgh.pa.us> <3F2D84FF.3070304@joeconway.com> <1680.1059949492@sss.pgh.pa.us> Subject: Re: concat_ws Date: Mon, 4 Aug 2003 01:20:21 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/49 X-Sequence-Number: 9772 "Tom Lane" wrote: > Joe Conway writes: > > Tom Lane wrote: > >> It seems to be running out of memory. > > > Also worth noting, without STRICT, even a plain EXPLAIN *without* > > ANALYZE causes the problem to show itself. > > Yeah. The problem is that the SQL function inliner generates an > enormous expression tree from this function definition. 7.3 had no > inliner so no problem. > > I am not sure what to do about it --- the only idea that comes to mind > is to put an arbitrary limit (of, say, 5 or 10 function calls) on the > depth of inlining expansion. That seems like a pretty ugly answer > ... anyone have a better one? Please no one tell to add another ugly parameter on postgresql.conf My cent. Regards Gaetano Mendola