pgsql: Fix edge case in plpgsql's make_callstmt_target().

2024-08-07 Thread Tom Lane
Fix edge case in plpgsql's make_callstmt_target(). If the plancache entry for the CALL statement is already stale, it's possible for us to fetch an old procedure OID out of it, and then fail with "cache lookup failed for function NNN". In ordinary usage this never happens because make_callstmt_tar

pgsql: Fix edge case in plpgsql's make_callstmt_target().

2024-08-07 Thread Tom Lane
Fix edge case in plpgsql's make_callstmt_target(). If the plancache entry for the CALL statement is already stale, it's possible for us to fetch an old procedure OID out of it, and then fail with "cache lookup failed for function NNN". In ordinary usage this never happens because make_callstmt_tar

pgsql: Fix edge case in plpgsql's make_callstmt_target().

2024-08-07 Thread Tom Lane
Fix edge case in plpgsql's make_callstmt_target(). If the plancache entry for the CALL statement is already stale, it's possible for us to fetch an old procedure OID out of it, and then fail with "cache lookup failed for function NNN". In ordinary usage this never happens because make_callstmt_tar

pgsql: Fix edge case in plpgsql's make_callstmt_target().

2024-08-07 Thread Tom Lane
Fix edge case in plpgsql's make_callstmt_target(). If the plancache entry for the CALL statement is already stale, it's possible for us to fetch an old procedure OID out of it, and then fail with "cache lookup failed for function NNN". In ordinary usage this never happens because make_callstmt_tar

pgsql: Fix edge case in plpgsql's make_callstmt_target().

2024-08-07 Thread Tom Lane
Fix edge case in plpgsql's make_callstmt_target(). If the plancache entry for the CALL statement is already stale, it's possible for us to fetch an old procedure OID out of it, and then fail with "cache lookup failed for function NNN". In ordinary usage this never happens because make_callstmt_tar