pgsql: Fix re-execution of a failed SQLFunctionCache entry.

2025-08-20 Thread Tom Lane
Fix re-execution of a failed SQLFunctionCache entry. If we error out during execution of a SQL-language function, we will often leave behind non-null pointers in its SQLFunctionCache's cplan and eslist fields. This is problematic if the SQLFunctionCache is re-used, because those pointers will poi

pgsql: Fix re-execution of a failed SQLFunctionCache entry.

2025-08-20 Thread Tom Lane
Fix re-execution of a failed SQLFunctionCache entry. If we error out during execution of a SQL-language function, we will often leave behind non-null pointers in its SQLFunctionCache's cplan and eslist fields. This is problematic if the SQLFunctionCache is re-used, because those pointers will poi