Hi,
I recently was forcfully reminded that sql functions don't use the
plancache.c infrastructure. I was sort of aware of that, but I didn't
think far enough ahead that that also implies we'll not use custom plans
for statements with parameters when it'd be helpful.
That's imo quite the trap. Should we document it somewhere?
Greetings,
Andres Freund