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 1uk9oO-00GR5r-0u for pgsql-general@arkaria.postgresql.org; Thu, 07 Aug 2025 23:14:16 +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 1uk9oK-00FIsi-FP for pgsql-general@arkaria.postgresql.org; Thu, 07 Aug 2025 23:14:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uk9oK-00FIs1-4R for pgsql-general@lists.postgresql.org; Thu, 07 Aug 2025 23:14:12 +0000 Received: from smtp.burggraben.net ([88.198.69.140]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uk9oH-001L79-15 for pgsql-general@lists.postgresql.org; Thu, 07 Aug 2025 23:14:11 +0000 Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:21b:21ff:fef0:248b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elch.exwg.net", Issuer "R10" (verified OK)) by smtp.burggraben.net (Postfix) with ESMTPS id 4DD9DC0030F; Fri, 8 Aug 2025 01:14:08 +0200 (CEST) Received: by elch.exwg.net (Postfix, from userid 1000) id E30E1FE593; Fri, 08 Aug 2025 01:14:07 +0200 (CEST) Date: Fri, 8 Aug 2025 01:14:07 +0200 From: Christoph Moench-Tegeder To: Dominique Devienne Cc: Pavel Stehule , pgsql-general@lists.postgresql.org Subject: Re: CALL and named parameters Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.14 (2025-02-20) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ## 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". Consider this demonstration: db=# call proc1(val => 1); CALL db=# call proc1(val => '2'); CALL db=# call proc1(value => 3); ERROR: procedure proc1(value => integer) does not exist LINE 1: call proc1(value => 3); ^ HINT: No procedure matches the given name and argument types. You might need to add explicit type casts. db=# call proc1(value => '4'); ERROR: procedure proc1(value => unknown) does not exist LINE 1: call proc1(value => '4'); ^ HINT: No procedure matches the given name and argument types. You might need to add explicit type casts. db=# call proc1(value => text '5'); ERROR: procedure proc1(value => text) does not exist LINE 1: call proc1(value => text '5'); ^ HINT: No procedure matches the given name and argument types. You might need to add explicit type casts. Regards, Christoph -- Spare Space