model-writtenrun 1867 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Pierrick reported that pg_available_extensions listed versions from multiple directories even though CREATE EXTENSION could only reach the first matching extension, and asked for version searches across all directories in #1.
- Matheus Alcantara explained that selecting the first primary control file was intentional in #2, while David G. Johnston identified the availability view as misleading and suggested exposing shadowing and extension locations in #3.
- Tom Lane questioned whether extension_control_path should be reverted before PostgreSQL 18 because of recurring design problems in #4; Michael Paquier echoed those concerns and deferred the decision to Peter Eisentraut in #8.
- Pierrick initially preferred making every listed version installable in #5, but Matheus Alcantara argued against searching multiple directories for versions in #6, and Pierrick accepted showing only the first matching extension as a possible fix in #7.
- Peter Eisentraut supplied #9, retaining first-match installation semantics while hiding duplicate names in both availability views, documenting precedence, and extending tests; the patch did not add location information or broader version searches.
- Pierrick tested directory precedence and fallback successfully in #10, with an annotation correction in #11; Peter Eisentraut committed the patch unchanged as 8309f3f86d and announced completion in #12.
- The attached fix was fully committed when Matheus Alcantara closed this thread's discussion by linking a separate follow-up patch in #13; that patch's contents and outcome are not included here.