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 1ujibM-00BCV1-JT for pgsql-general@arkaria.postgresql.org; Wed, 06 Aug 2025 18:11:00 +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 1ujibL-0004Z6-Hy for pgsql-general@arkaria.postgresql.org; Wed, 06 Aug 2025 18:10:59 +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 1ujibL-0004Yy-7J for pgsql-general@lists.postgresql.org; Wed, 06 Aug 2025 18:10:59 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1ujibI-0015Em-1y for pgsql-general@lists.postgresql.org; Wed, 06 Aug 2025 18:10:58 +0000 Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfhigh.stl.internal (Postfix) with ESMTP id D0D2C7A01D2; Wed, 6 Aug 2025 14:10:56 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Wed, 06 Aug 2025 14:10:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1754503856; x=1754590256; bh=/+wqIPm1vLBzz1mzwpRSdNO3PmcH8x8gAuUE7qn2p9s=; b= PFo8BpFkYyCqfDcXcBGgC7ZeOr4HhMcBdC5Io0df6arEcXo9E64NS2JdE90Ca3UP pvnyFBa5rn18kb9ohhMbnEh0k69G3jpzSsMqzAA9xcd99E2oYxEpPHmlWdz0rP1a 0i6CEwSahBDDI/DkuydwA4/on0sct5iJDP3lEoRs21wasswnKLAXP+BIc36mEOw5 n28pppDcSzkHq9CnyfL0Sf+a0cZLVDVbuv7lxFA6H0gmHCRLdNoL+RNn7odG7r+L EMg2h/x5A7dmx4Yyr8OKbdHvXwWSCqJkB8aaTqUxpZ9UOez1jl9d1vl898qnwqkb 7DbrJNxsYpVjzPIJyz9hPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1754503856; x=1754590256; bh=/ +wqIPm1vLBzz1mzwpRSdNO3PmcH8x8gAuUE7qn2p9s=; b=IudXpZnuXTiZnYKCH kdd5Xiu9tc0EtIc0Z7afsnADwLz/QkAQ/oXQAft5TJOhoNBste43e/J02oZRRq50 yRD/NbleHFxSd5YKXNmb8JufF8wv06JU7rD0uZue4SSXxwcmPxyXkBpzZ8BtiBnh n7AUUdJINl2oiYqkIx/5FUVT17HVEbLrwUV0lwa4KPvZ7bDZfhpiY6CcEqj3VD2w tabKUAWZqckVIL1YbNFoEthlCZULEvej4d24SBboWZ2jnVA5TzjL7r7AsSDhkFS1 IieSfuHjweIj1ceMZDrfDhz/JQXV6AwiN9Oub8HkzOPujhmIk7mQeUbepY1aKjeo hAnsw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduudekjeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeeivdfhieehheegueeileejieettdejhedugeefleekvdel keehtdfgiefffeekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggp rhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeguuggvvhhivg hnnhgvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlhes lhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Aug 2025 14:10:56 -0400 (EDT) Message-ID: <94f7cf0f-ee15-4e6a-b5eb-f70bbbaa520a@aklaver.com> Date: Wed, 6 Aug 2025 11:10:55 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: CALL and named parameters To: Dominique Devienne , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/6/25 10:48, Dominique Devienne wrote: > (sorry, this is a rant...). > > Was getting an error calling a procedure > > ERROR: procedure ... does not exist > HINT: No procedure matches the given name and argument types. You > might need to add explicit type casts. > > I verify USAGE on the SCHEMA of the proc. OK. > I verify EXECUTE on the FUNCTION. OK. > I verify the names of the parameters, in my CALL with named arguments. OK. > > Turns out, thanks to ChatGPT for clueing me in, CALL does NOT support > named parameters. And it's about the least helpful error message > PostgreSQL could have provided IMO. I'd expect something much better > in this specific case, FWIW. I am not following as: CREATE OR REPLACE PROCEDURE public.call_test(IN a integer, IN b integer) LANGUAGE plpgsql AS $procedure$ BEGIN RAISE NOTICE 'c = %', a + b; END; $procedure$ call call_test (a=>1, b=>2); NOTICE: c = 3 CALL You will need to provide more information on your specific case. > > That's two unhelpful error messages in a short time :). > > Thanks, and again sorry for the rant. Wasted time on this. --DD > > -- Adrian Klaver adrian.klaver@aklaver.com