My mistake apparently, I got this on 13.5 originally and then I tested on what I thought was 14.9, but it seems that was actually 14.4 - can't check at the moment. I hadn't been able to find information on this particular issue. Thanks, glad to see it fixed!
> When executing the following sequence of statements: > ... > ...which is as expected, while statement #B will throw an error: > SQL Error [42883]: ERROR: function with OID 102048 does not exist > Where: SQL statement "CALL proc()" > PL/pgSQL function test1() line 3 at CALL
It works as expected for me in current branch tips (including 13.12 and 14.9). I recall we made some fixes in plancache management that probably explain your issue, but I don't recall details.