fix pkglibdir path for remote extensions

This commit is contained in:
Anastasia Lubennikova
2023-08-09 18:29:56 +03:00
parent 5993b2bedc
commit da128a509a

View File

@@ -222,7 +222,7 @@ pub async fn download_extension(
);
let libdir_paths = (
unzip_dest.to_string() + "/lib",
Path::new(&get_pg_config("--libdir", pgbin)).join("postgresql"),
Path::new(&get_pg_config("--pkglibdir", pgbin)).to_path_buf(),
);
// move contents of the libdir / sharedir in unzipped archive to the correct local paths
for paths in [sharedir_paths, libdir_paths] {