model-writtenrun 2273 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut opened the thread with the announcement of extension_control_path, enabling extension discovery outside the compiled-in installation directory and supporting installation through a custom PGXS prefix #1.
- Christoph Berg reported that semver still failed because its control file placed SQL scripts in a separate directory #2; Matheus Alcantara initially proposed documenting the limitation, believing a broader SHAREDIR search required substantial refactoring #3.
- Christoph argued for resolving scripts from the location of the selected control file, warning that an independent search could mix extension versions #4, while David E. Wheeler also discussed removing semver's custom directory setting as a workaround #5.
- Matheus instead supplied a direct fix that resolved relative script directories from the control file's installation base and made custom search-path entries omit the extension suffix #6; Christoph confirmed it worked and suggested storing the base directory explicitly #7, leading to the basedir field and expanded tests in #8.
- David's testing exposed a crash when the extension could not be found #9, which Matheus fixed by checking for a missing filename before accessing the control directory and adding a regression test #10.
- David confirmed the crash fix but found that directory suffix handling still behaved incorrectly #11; Matheus traced this to appending /extension to the entire search-path string and introduced a helper that searched individually resolved path elements #12.
- David successfully tested the corrected path search and considered the patch ready #13, then suggested simplifying macro handling #15; Matheus incorporated that cleanup and added documentation for the changed path convention #16.
- Peter committed #16 as 81eaaa2c41, with light code and test cleanup plus revised and expanded documentation, explaining that landing before beta1 avoided changing accepted configuration values later #18.
- The thread ended with acknowledgments from Matheus and Christoph, with the submitted fix committed and no further patch revisions or outstanding requests recorded #19 #20.