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 1ukA74-00GUxC-CX for pgsql-general@arkaria.postgresql.org; Thu, 07 Aug 2025 23:33:34 +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 1ukA73-00FroV-0k for pgsql-general@arkaria.postgresql.org; Thu, 07 Aug 2025 23:33:33 +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 1ukA72-00FroH-Mb for pgsql-general@lists.postgresql.org; Thu, 07 Aug 2025 23:33:32 +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.96) (envelope-from ) id 1ukA6z-001IVK-1q for pgsql-general@lists.postgresql.org; Thu, 07 Aug 2025 23:33:31 +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 577NXPbN1635993; Thu, 7 Aug 2025 19:33:25 -0400 From: Tom Lane To: Christoph Moench-Tegeder cc: Dominique Devienne , Pavel Stehule , pgsql-general@lists.postgresql.org Subject: Re: CALL and named parameters In-reply-to: References: Comments: In-reply-to Christoph Moench-Tegeder message dated "Fri, 08 Aug 2025 01:14:07 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1635991.1754609605.1@sss.pgh.pa.us> Date: Thu, 07 Aug 2025 19:33:25 -0400 Message-ID: <1635992.1754609605@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Christoph Moench-Tegeder writes: > ## Dominique Devienne (ddevienne@gmail.com): >> dd_v185=> call "Epos-DBA".db_grant_connect_to(grantee_role => 'dd_joe'); >> ERROR: procedure Epos-DBA.db_grant_connect_to(grantee_role => >> unknown) does not exist >> LINE 1: call "Epos-DBA".db_grant_connect_to(grantee_role => 'dd_joe'... > There's the problem: "unknown" type - consider that string there as > "too flexible", it can be coerced into too many types, so the error > says "unknown". No, the issue is that the procedure's named parameter is not named "grantee_role" but something else. We'd have coerced the unknown parameter just fine, except that we never considered this procedure as a valid match at all. regards, tom lane