diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2025-06-04 11:21:24 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2025-06-04 11:38:12 +0200 |
commit | f777d773878ddda3388bb18dbcb93e97a0fb52e2 (patch) | |
tree | 0408eb1ee31b196a90cbd19d52a2dfc923431177 /src/backend/access/gist/gistutil.c | |
parent | 7f3381c7ee661e552634f06509a3452988a15845 (diff) | |
download | postgresql-f777d773878ddda3388bb18dbcb93e97a0fb52e2.tar.gz postgresql-f777d773878ddda3388bb18dbcb93e97a0fb52e2.zip |
Don't strip $libdir from LOAD command
Commit 4f7f7b03758 implemented the extension_control_path GUC, and to
make it work it was decided that we should strip the $libdir/ on
module_pathname from .control files, so that extensions don't need to
worry about this change.
This strip logic was implemented on expand_dynamic_library_name()
which works fine when executing the SQL functions from extensions, but
this function is also called when the LOAD command is executed, and
since the user may explicitly pass the $libdir prefix on LOAD
parameter, we should not strip in this case.
This commit fixes this issue by moving the strip logic from
expand_dynamic_library_name() to load_external_function() that is
called when the running the SQL script from extensions.
Reported-by: Evan Si <evsi@amazon.com>
Author: Matheus Alcantara <matheusssilv97@gmail.com>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Rahila Syed <rahilasyed90@gmail.com>
Bug: #18920
Discussion: https://www.postgresql.org/message-id/flat/18920-b350b1c0a30af006%40postgresql.org
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions