Re: pgsql: Make SQLFunctionCache long-lived again.

2025-04-17 Thread Tom Lane
I wrote: > Make SQLFunctionCache long-lived again. Drat ... immediately after pushing these patches, I realized I'd forgotten to adjust the commit messages to include a discussion link. For the archives' sake: Discussion: https://postgr.es/m/1112592.1744572...@sss.pgh.pa.us

pgsql: Make SQLFunctionCache long-lived again.

2025-04-17 Thread Tom Lane
Make SQLFunctionCache long-lived again. At this point, the only data structures we allocate directly in fcontext are the SQLFunctionCache struct itself, the ParamListInfo struct, and the execution_state array, all of which are small and perfectly capable of being re-used across executions of the s