model-writtenrun 9605 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ash Marath reported that an overloaded function name produced an ambiguity error with DROP FUNCTION but a misleading missing-function notice with IF EXISTS in #1.
- David Rowley initially questioned changing established behavior and supplied an inline fix in #2, while David G. Johnston argued that IF EXISTS should suppress only absence in #3 and Alvaro Herrera suggested separating lookup results from error reporting in #7.
- Rowley attached a minimal ambiguity-check fix with regression tests in #8, but Tom Lane objected to changing the meaning of noError in #9, leading to the separate missing_ok parameter in #10.
- Rowley repaired a missed PL/Tcl caller in #12 and adapted to a new upstream caller in #13; Lane then found the two-boolean API confusing in #14, prompting the enum-based revision in #15.
- Michael Paquier raised extension compatibility concerns in #16, and Lane settled on a development-branch-only change in #20 because even the original behavioral change could break existing callers.
- Arthur Zakirov found an unconverted CreateTransform() call in #17, while Julien Rouhaud examined enum compatibility and found a comment typo in #22; Rowley fixed the typo in #25 and the missed call in #30 after Paquier repeated that finding and challenged the error-handling design in #29.
- After questioning how the enum interacted with get_object_address() in #31 and receiving Rowley's explanation of missing_ok in #32, Lane abandoned the expanded API in #33 and proposed a shared internal helper that distinguished missing and ambiguous results, also identifying the corresponding procedure bug.
- Rowley implemented that helper in #34, restored the public boolean interfaces, added procedure-specific ambiguity reporting, and made wrong-object-type errors survive IF EXISTS.
- Pavel Stehule tested the rewritten patch and requested clearer comments in #35; Rowley responded in #36 by renaming noError to missing_ok and fixing the missing routine ambiguity case with an additional test.
- Lane committed #36 as bfb456c1b9, retaining the design while polishing comments and control flow, returning early for missing argument types, and improving regression coverage and cleanup; he announced the landing in #37.
- The fix was complete without backpatching, but Lane left error-message consistency and ambiguity between functions and procedures as possible follow-up work in #37; Rowley supported wording cleanup and explained his caution about changing cross-kind lookup behavior in the final reply #38.