Re: SQL functions not being inlined - Mailing list pgsql-general

From Tom Lane
Subject Re: SQL functions not being inlined
Date
Msg-id 9601.1335966074@sss.pgh.pa.us
Whole thread Raw
In response to Re: SQL functions not being inlined  (Evan Martin <postgresql@realityexists.net>)
Responses Re: SQL functions not being inlined
List pgsql-general
Evan Martin <postgresql@realityexists.net> writes:
> This worked... at first. I did some simple queries and they showed the
> function being inlined (index scan on primary key, seq scan - no
> function scan). Very happy with that, I tried changing some other
> functions (that depend on these) and then found that the _asof functions
> are not being inlined anymore! I swear, I'm not making this up. Nothing
> changed in those functions. Same simple query. It was inlined before and
> now it's not. I've dropped and re-created the functions, did an ANALYZE,
> even restarted PostgreSQL - they're not inlined any more. I really don't
> know what to think!

[ squint... ]  There are a lot of undocumented restrictions on inlining
in inline_set_returning_function(), but AFAICS none of them are
nondeterministic, nor would the decision depend on anything outside
the function and its arguments.  Can you provide a concrete test case?

            regards, tom lane

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: Significance of Postgres (version 9.1.1) Compilation parameters - Performance
Next
From: bradford
Date:
Subject: Re: How do I setup this Exclusion Constraint?