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 1uk0hX-00EdzQ-9E for pgsql-general@arkaria.postgresql.org; Thu, 07 Aug 2025 13:30:35 +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 1uk0hV-004bFJ-UB for pgsql-general@arkaria.postgresql.org; Thu, 07 Aug 2025 13:30: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 1uk0hV-004b8X-Ih for pgsql-general@lists.postgresql.org; Thu, 07 Aug 2025 13:30:33 +0000 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uk0hS-001E2n-23 for pgsql-general@lists.postgresql.org; Thu, 07 Aug 2025 13:30:32 +0000 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-741b1fe0d4fso623228a34.0 for ; Thu, 07 Aug 2025 06:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754573431; x=1755178231; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qAtJGeAlO/wA+L8vYror7yI52zEq5g0mGKvnn28mD+s=; b=ecYq/sTqgH987jTqGwY9+6Q31EgiEB5WqoQWbQSAplbimk/jOUdciKCfw2/nwPu0X9 10g8kF9YXTkDXdgDl5WigTAfWWah06TISUTZMd1qfx9DNLwGluNh/cEelrO8ATxTzdUo EOnQBxnl+pTEwbh2Ec0KA5xtP3YV2vqbTSlG8rVvfy20to9EpDkhxmSs0CIUGbSnIqDu OoWvvINH/p5mfKh59inneSw4cUiUrOeaaPYuI5lw+up7ftxi6LaYQOYFTwaaay8nfMfY ukAPwkewchVxFP59fH1Ng09s9c2T6sn9s99c4ln7Bgn0dakCTsiGR1GOJtwTNpSAvz1g jnTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754573431; x=1755178231; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qAtJGeAlO/wA+L8vYror7yI52zEq5g0mGKvnn28mD+s=; b=k8uet50UcTc9LUPG/xCrx9Ruz9aR54+BKHpFm6n2zbT+7aNslpm8cydPYnDDkVkZHP vljW86VWEyNrjut9AM7tQTxHhIrpFQuuVxxvicRkNz39E0lBeyjpwtr0EHWxOscNqXDE IXLqJf2AZcmDbqkJydAWzSupCgBoHZj4oSu2MbBhXSGZa7s1YkJNgGR0pCWEBMhb642+ TyZ3bvpXDFl0tg/sQLL+Mg6vtUwYsbzNx6ayRTl+Bhcw3dwFbzrSbori7P7FQ+Reirwn PkH0MfDJw5rmCHYqe6VvuRE6fuNuKZucuTgTrEYRBVNPaR1IKZEAcb94UiwClizKEX6U pzyQ== X-Forwarded-Encrypted: i=1; AJvYcCXxDd+jM/njr686Q78daFwJnH0M0co6VZemkH/WQTfo2bHoK1GUNyzqEQFhtH6w5vhtgeYCYAUV87/Ex+fC@lists.postgresql.org X-Gm-Message-State: AOJu0Yz7eOr6zbMThyExG+XvvH64W4PjqEScQei68MZaYl2rTVr331X+ /T9D70kOEIcisSr1xaByPxsw6VkY5Q9wVXIa/GjZmOOYR3E/ARmcwxmBhS2zIHdMdHbp51cNCTw gWxnWbXfReaixtlZchKqRmGUyI/id4sI8uHTs X-Gm-Gg: ASbGncvoNJp2aiNjcQJ59B9UGbOOTKyki/j0KI4f1juUuuHJtLaRSi8vavbvWN69ujp Nb98Kk1f2DNSQv0a/f5sYbeNKC/JMH2dCtdfenWFnGjBPPBgDV4/TouqNgCJdWGN0NMwNvr6dtq i1tooioSAr9dXPi9KSjWGkCYUwhlt4lQzv8nrVD3nqdevxG/ojzLGh3pqAk5TpCJ262Vxbryq2O 4ZFalmVY72TK41Xq30hQ2uQqTKpDmK8kdwTWuKH X-Google-Smtp-Source: AGHT+IGNwKyCTYMk+fJ45cyIxbd1zW0Lv10yTz4ylQ4BcrwWaxdq04WR2Uwq04xdXsTXBZ8po6W0jeGuWnjO9eOlCUQ= X-Received: by 2002:a05:6830:438b:b0:743:943:43d5 with SMTP id 46e09a7af769-74309434c65mr4096983a34.18.1754573430838; Thu, 07 Aug 2025 06:30:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6802:3c0c:b0:5dc:d940:7893 with HTTP; Thu, 7 Aug 2025 06:30:30 -0700 (PDT) In-Reply-To: References: From: "David G. Johnston" Date: Thu, 7 Aug 2025 06:30:30 -0700 X-Gm-Features: Ac12FXzwUDZHZjkuAJdl6uq5sOUpa1gRNBY4puZ7n8aDYHXy5Sf8aqZFqEqlNxw Message-ID: Subject: Re: CALL and named parameters To: Dominique Devienne Cc: Pavel Stehule , "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000013dcb6063bc67606" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000013dcb6063bc67606 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thursday, August 7, 2025, Dominique Devienne wrote= : > > > What's not nice is in the way it failed IMHO. I guess I persist it's > not a user friendly message :) Then write the error message you would have liked to see. > > Can you overload a function solely by changing an argument name? No, the signature is only the name and input argument types. > If not, as I suspect, then function lookup doesn't strictly depend on > argument names (like in C++). > So the function did exist, with the correct "signature" (ignoring > argument names). > And I was "just" using the wrong arg-name. That tripped me up. How is it =E2=80=9Cjust=E2=80=9D an argument name when you are using named = argument syntax? David J. --00000000000013dcb6063bc67606 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thursday, August 7, 2025, Dominique Devienne <ddevienne@gmail.com> wrote:

What's not nice is in the way it failed IMHO. I guess I persist it'= s
not a user friendly message :)

Then write t= he error message you would have liked to see.
=C2=A0

Can you overload a function solely by changing an argument name?

No, the signature is only the name and input argument= types.
=C2=A0
If not, as I suspect, then function lookup doesn't strictly depend on argument names (like in C++).
So the function did exist, with the correct "signature" (ignoring=
argument names).
And I was "just" using the wrong arg-name. That tripped me up.

How is it =E2=80=9Cjust=E2=80=9D an argument = name when you are using named argument syntax?

Dav= id J.

--00000000000013dcb6063bc67606--