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 1sbjx7-0014Nh-Bg for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Aug 2024 16:55:57 +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 1sbjx5-008Wmc-NI for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Aug 2024 16:55:55 +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 1sbjx5-008WmT-Eg for pgsql-bugs@lists.postgresql.org; Wed, 07 Aug 2024 16:55:55 +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 1sbjx3-003ZVg-37 for pgsql-bugs@lists.postgresql.org; Wed, 07 Aug 2024 16:55:54 +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 477Gtlxu2051175; Wed, 7 Aug 2024 12:55:47 -0400 From: Tom Lane To: hysong0101@163.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18574: procedure cache does not invalidate when output parameter type mismatch In-reply-to: <18574-2ce7ba3249221389@postgresql.org> References: <18574-2ce7ba3249221389@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 07 Aug 2024 05:55:24 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2051173.1723049747.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 07 Aug 2024 12:55:47 -0400 Message-ID: <2051174.1723049747@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: > The reproduced script is as above. There is one out parameter in the two > procedures. In the initial state, we make their types do not match and call > the fisrt procedure which internally calls the other procedure. Then we will > get "procedure parameter "r1" is an output parameter but corresponding > argument is not writable". After this, we drop procedure + create procedure > for p2. In this time, we re-call the fisrt procedure,we will get "cache > lookup failed for function". Fixed, thanks for the report! regards, tom lane