fix(PostGIS): strip $libdir/ prefix from extension SQL scripts#293
Open
gbartolini wants to merge 1 commit into
Open
fix(PostGIS): strip $libdir/ prefix from extension SQL scripts#293gbartolini wants to merge 1 commit into
$libdir/ prefix from extension SQL scripts#293gbartolini wants to merge 1 commit into
Conversation
`ALTER EXTENSION UPDATE` fails with `"could not access file "$libdir/postgis-3": No such file or directory"` because the PGDG-packaged `postgis/address_standardizer` upgrade SQL hardcodes `LOAD '$libdir/<module>'`, but with `imageVolume`-mounted extensions there is no `$libdir` to expand. `dynamic_library_path` already resolves the bare module name, so the prefix is stripped from the scripts at build time. If successful, we should fix this upstream, either in the Debian packaging project or in PostGIS directly. Closes #256 Co-Authored-By: Claude Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
gbartolini
requested review from
a team,
GabriFedi97 and
NiccoloFei
as code owners
July 23, 2026 06:30
mnencia
approved these changes
Jul 23, 2026
$libdir/ from LOAD statements in upgrade scripts$libdir/ prefix from extension SQL scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ALTER EXTENSION UPDATEfails with"could not access file "$libdir/postgis-3": No such file or directory"because the PGDG-packagedpostgis/address_standardizerSQL scripts hardcode$libdir/<module>both inLOADstatements and inASfunction definitions, but withimageVolume-mounted extensions there is no$libdirto expand.dynamic_library_pathalready resolves the bare module name, so the$libdir/prefix is stripped from all PostGIS install and upgrade scripts at build time.If successful, we should fix this upstream, either in the Debian packaging project or in PostGIS directly.
Closes #256
Co-Authored-By: Claude