PG Bug reporting form <noreply@postgresql.org> writes:
> PostgreSQL version: 13.5
> 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.
regards, tom lane