Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Do we precompile SQL functions yet?
As of CVS tip, we can inline SQL functions that are simple "SELECT
expression" cases; and it's always been true that SQL function queries
are planned only once per outer query. I don't believe there's any
cross-query caching of SQL function plans, however.
regards, tom lane