From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Evan Martin <postgresql(at)realityexists(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: SQL functions not being inlined |
Date: | 2012-05-02 13:41:14 |
Message-ID: | 9601.1335966074@sss.pgh.pa.us |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Evan Martin <postgresql(at)realityexists(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | bradford | 2012-05-02 14:02:28 | Re: How do I setup this Exclusion Constraint? |
Previous Message | Albe Laurenz | 2012-05-02 13:19:04 | Re: Significance of Postgres (version 9.1.1) Compilation parameters - Performance |