Jim Nasby <deci...@decibel.org> writes: > On Apr 2, 2010, at 12:12 PM, Tom Lane wrote: >> If you're thinking of just replacing the call with a sub-SELECT >> construct, that's no good in general because it would change the >> semantics.
> Since Alexey was working on this for us, I'll elaborate. The actual > use case is below. There are two reasons why that function doesn't get inlined: it's not declared to return SETOF, and it's (implicitly) declared VOLATILE. If you make it SETOF and STABLE, it'll get inlined. Both of those things change the semantics, so it's hard to do inlining otherwise. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers