Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qdBXZ-002Tp0-WA for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Sep 2023 15:31:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qdBXY-00Cjez-Rb for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Sep 2023 15:31:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qdBXY-00Cjeh-IT for pgsql-bugs@lists.postgresql.org; Mon, 04 Sep 2023 15:31:00 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qdBXV-002hjl-Cy for pgsql-bugs@lists.postgresql.org; Mon, 04 Sep 2023 15:30:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 384FUtkK1162141; Mon, 4 Sep 2023 11:30:55 -0400 From: Tom Lane To: branko.radovanovic.zg@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18081: Spurious "function with OID ###### does not exist" error In-reply-to: <18081-c32695387b4971ac@postgresql.org> References: <18081-c32695387b4971ac@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 04 Sep 2023 09:12:06 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1162139.1693841455.1@sss.pgh.pa.us> Date: Mon, 04 Sep 2023 11:30:55 -0400 Message-ID: <1162140.1693841455@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form 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