Re: Identifying function-lookup failures due to argument name mismatches
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dominique Devienne <ddevienne@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2025-08-22T15:03:44Z
Lists: pgsql-hackers
Dominique Devienne <ddevienne@gmail.com> writes: > One last though. Is it worth reserving a few bits to count the > candidate matches? You'll never reach 32 flags, so 8 feels like plenty. > Barring listing the candidates, a count hint might help? In my case > it was only 1, but it more complete cases where the search_path > is involved, one might get surprised with candidates coming from afar > making things ambiguous? Again, jus thinking aloud. --DD Candidates in what sense, that is where would you make the count? In any case, that seems like it's about adding detail to the "ambiguous function" case, which might be worth doing but it's not the goal of this patch. regards, tom lane
Commits
-
Provide more-specific error details/hints for function lookup failures.
- 83a56419457e 19 (unreleased) landed