Re: concat_ws - Mailing list pgsql-admin

From Tom Lane
Subject Re: concat_ws
Date
Msg-id 24897.1060003585@sss.pgh.pa.us
Whole thread Raw
In response to Re: concat_ws  (Dennis Björklund <db@zigo.dhs.org>)
List pgsql-admin
=?ISO-8859-1?Q?Dennis_Bj=F6rklund?= <db@zigo.dhs.org> 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

pgsql-admin by date:

Previous
From: Dennis Björklund
Date:
Subject: Re: concat_ws
Next
From: "Mendola Gaetano"
Date:
Subject: pg_autovacuum ?