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 1uk1Zy-00EnRC-Nb for pgsql-general@arkaria.postgresql.org; Thu, 07 Aug 2025 14:26:50 +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 1uk1Zx-0055Up-BH for pgsql-general@arkaria.postgresql.org; Thu, 07 Aug 2025 14:26:49 +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 1uk1Zx-0055Uh-0Y for pgsql-general@lists.postgresql.org; Thu, 07 Aug 2025 14:26:49 +0000 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uk1Zu-001EX2-0o for pgsql-general@lists.postgresql.org; Thu, 07 Aug 2025 14:26:48 +0000 Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-433fd4aeeb8so718131b6e.0 for ; Thu, 07 Aug 2025 07:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754576806; x=1755181606; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=p6cgqXmCep67/uf+8BJXJFs2Eqaozl2aWdO7GB5cfM8=; b=HHfci96ucpS3EvAj0c35Hk/uEX3unSizO1WqGynAJP4GPfB/Q+TjHiKXQFcViO5OwE iAnXh5HUHl9sdoKUqRFsOMKhysAuDdL+pzf9iDlnbDxyjM86aUe+yyTBplYlWWkcm6ES OZdrleITBtJ9YLwI7PP7Pk/Gi/yJ8bC6Z8vW7/LqjtdEA2tLgOiCh2aHJfEgZ1zA8VDW i2PtNr8hU1spj5wIv2qTrNMuH878pjBDfADkrhZhm6OBBsayqfjUuACA8l6L9+orFg8T kdckGkYbYshnTVYcLgmgM6HAiDMGbuhAtBdRb7OGHMlZcSXEvMmKKPvit8tvtCMNf0CQ +zSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754576806; x=1755181606; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p6cgqXmCep67/uf+8BJXJFs2Eqaozl2aWdO7GB5cfM8=; b=bndkeJuJYxcOb/N8KL6p5KRlVI4rY3vjRm8GTPqAh4MM8hAhqzG5cnDCBRqTLfEFfw bCh7AEDqHq/8nqTvetPdS2lrW/ThCgFlzrVY+zzbeNUjg5XmCI+Mh+DynWK2yzoi+Wsn LcmNow5DHSzAZdMFycbxYawt7/9Zg5Gl0+CNth95SbfXBQRGkdbpw5DqcJVNTYVwZ711 zM9FRbfW07TGvNH5lgePqgGaGMCE+BgCVgliZDyzKSehhH/rc/OHL0BZk9GKWhNvyO3U G+WC5VP3ryie+MZQRk7oJYeM9i7FfLYzlR2wufiAtfqn0dn8AiNmH77eB7bWCVUprVEA zlyA== X-Forwarded-Encrypted: i=1; AJvYcCXsONdLeDYcl5WYUZPCQxdRpxAXzHy3PirhiZH/wfwzEfg+McsI+ZddmrbWxpnVAP0094JVD842e7K4Mk9Z@lists.postgresql.org X-Gm-Message-State: AOJu0YxRYHuGleZbxTNfrX3QMosT3Xvj0OLKaqJZywTu4v7L8UKsdzGn Q4QH/RWo7hGvFqfzMYrRe0QjoD3am7ojncABMk0PeJLx7oAYi/yxFq9aeCckjlcRb7YNai+6bun ywpNy1Riel8xM38lXgBc/ThtzrrGsscw= X-Gm-Gg: ASbGncsST10hqkMP35aUh3P1BzgKI+mN/q50ChRomvG0uQ9BPCcwmfeYV7wMcZc5AVn GcHcSeD9XuGbIz6KApmAyJ3gVPXLFB4fTGnDNOZMHiSEoAhOUJPF3j9JmkYJZ8kFSHqaX2mdWL0 RaO+N2JLwSTGhH7Ojyj6YDlaNRkNr0nwe9n+36H4oEMeA1JzZKijoTJupLYcyNSYA4iDtl7cG4N qLWiarAwg== X-Google-Smtp-Source: AGHT+IE3zGIU/eeU9s685kn6FFhdWVurkMUzzWdLDJ6y2bcpmb07r7Nw7dXZnSJkh4wYhdx0LyI8+uxu5rdBixn4k0k= X-Received: by 2002:a05:6808:3a06:b0:433:ef4c:6d85 with SMTP id 5614622812f47-435946810d4mr104620b6e.14.1754576806196; Thu, 07 Aug 2025 07:26:46 -0700 (PDT) MIME-Version: 1.0 References: <1566947.1754576491@sss.pgh.pa.us> In-Reply-To: <1566947.1754576491@sss.pgh.pa.us> From: Dominique Devienne Date: Thu, 7 Aug 2025 16:26:34 +0200 X-Gm-Features: Ac12FXwR0sdgQxI3Cg-SNDxHoC_oL1iUDARZbOP8JeuZIGkA0Vt18X-ds4Bwt9o Message-ID: Subject: Re: CALL and named parameters To: Tom Lane Cc: "David G. Johnston" , Pavel Stehule , "pgsql-general@lists.postgresql.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Aug 7, 2025 at 4:21=E2=80=AFPM Tom Lane wrote: > The message presumably was like > > ERROR: procedure ... does not exist > HINT: No procedure matches the given name and argument types. You might = need to add explicit type casts. Hi Tom. Indeed it was. I shared my psql session showing that. > That HINT hasn't been updated since we added named arguments, but > "argument names don't match" is now also a possible failure reason. > The simplest possible change would be, say, > > HINT: No procedure matches the given name and argument names/types. You = might need to add explicit type casts. > > Not sure if that's good enough, but the matching rules are > complex enough that it'd be hard to be definitive about > the argument name being the problem. That's better than nothing. And I get it's likely complex. But still, arg names are not part of the signature. So they should be checked after the fact. In my case, the SCHEMA eas explicit, so no search_path. With the ::name cast, the signature was an exact match. And there are no overloads at all. So it's possibly the "worse case" for saying the proc does NOT exist... It's like the code should do a LEFT JOIN instead of a JOIN on arg names :). --DD