pgsql: Prevent clobbering of utility statements in SQL function caches.

2022-11-29 Thread Tom Lane
Prevent clobbering of utility statements in SQL function caches. This is an oversight in commit 7c337b6b5: I apparently didn't think about the possibility of a SQL function being executed multiple times within a query. In that case, functions.c's primitive caching mechanism allows the same utilit

pgsql: Prevent clobbering of utility statements in SQL function caches.

2022-11-29 Thread Tom Lane
Prevent clobbering of utility statements in SQL function caches. This is an oversight in commit 7c337b6b5: I apparently didn't think about the possibility of a SQL function being executed multiple times within a query. In that case, functions.c's primitive caching mechanism allows the same utilit

pgsql: Prevent clobbering of utility statements in SQL function caches.

2022-11-29 Thread Tom Lane
Prevent clobbering of utility statements in SQL function caches. This is an oversight in commit 7c337b6b5: I apparently didn't think about the possibility of a SQL function being executed multiple times within a query. In that case, functions.c's primitive caching mechanism allows the same utilit