SQL function plan caching
SQL-language functions planned through the plan cache, so their queries can get custom or cached generic plans, with the follow-up performance and bug fixes. Introduced in PostgreSQL 18.
Versions
- PostgreSQL 18 · shipped · new · major · 4 commits · +2.2k / -996 lines
- PostgreSQL 16 · worked-on · new · major
Threads
- CachedPlan Invalidation in SQL function
- BUG #19487: Error while executing SQL query involving XML parsing
- BUG #19486: Regression in SQL-language functions using XML values and IS DOCUMENT
- BUG #19428: Lazy evaluation of type checking in CASE in SQL functions including subqueries no longer works in 18
- BUG #19026: ResourceOwnerForget can't find owner for invalid plancache
- SQL functions: avoid making a tuplestore unnecessarily
- Performance issues with v18 SQL-language-function changes
- SQLFunctionCache and generic plans