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 A8438D1C92D for ; Mon, 4 Aug 2003 13:27:54 +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 08381-08 for ; Mon, 4 Aug 2003 10:26:42 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id B796BD1C991 for ; Mon, 4 Aug 2003 10:27:43 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h74DQQSa024898; Mon, 4 Aug 2003 09:26:26 -0400 (EDT) To: =?ISO-8859-1?Q?Dennis_Bj=F6rklund?= Cc: Joe Conway , Hans Spaans , pgsql-admin@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: concat_ws In-reply-to: References: Comments: In-reply-to =?ISO-8859-1?Q?Dennis_Bj=F6rklund?= message dated "Mon, 04 Aug 2003 07:44:37 +0200" Date: Mon, 04 Aug 2003 09:26:25 -0400 Message-ID: <24897.1060003585@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/54 X-Sequence-Number: 9777 =?ISO-8859-1?Q?Dennis_Bj=F6rklund?= writes: > On Sun, 3 Aug 2003, Tom Lane wrote: >> I added code to inline_function to stop inlining if a parameter >> expression to be substituted multiple times has cost greater than >> 10*cpu_operator_cost (which roughly means that it contains more than >> 10 operators or functions). > When is this inlining taking place and what is the logic? I just want to > make sure that there is no code in pg that will unfold forever, say for > example for a recursive fac() function. From the above it sounds like that > might be a problem. That's already dealt with. See inline_function() in src/backend/optimizer/util/clauses.c. regards, tom lane