Re: Identifying function-lookup failures due to argument name mismatches - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Identifying function-lookup failures due to argument name mismatches
Date
Msg-id CA+TgmoY252OoQXuMe0rHYJ58-d81M3=KrkEqjYzaXjvQb8Zy5Q@mail.gmail.com
Whole thread Raw
In response to Re: Identifying function-lookup failures due to argument name mismatches  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Identifying function-lookup failures due to argument name mismatches
List pgsql-hackers
On Mon, Sep 15, 2025 at 4:01 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The primary error message is not varying, only the DETAIL/HINT, so
> I find this concern pretty far-fetched.  Also, I believe that the
> case that the message intends to help with is very common and so
> it will save a lot of people time, more than enough to outweigh
> any cases where it's perhaps un-optimal.

I'm not entirely convinced, but you could well be right. I do like all
the other detailed diagnostics, I think, I just wasn't sure about that
one. But I'm not really here to argue, just giving my opinion.

> That is the response to
>
>  ERROR:  function public.dep_req2() does not exist
>  LINE 1:  SELECT public.dep_req2() || ' req3b'
>                  ^
> -HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
>
> and I omitted the hint/detail because it seems to add nothing,

Yeah, OK, that's fair.

--
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Ilia Evdokimov
Date:
Subject: Re: Vacuum statistics
Next
From: Robert Haas
Date:
Subject: Re: plan shape work