basically working. problem: my test files are version 15 but Im testing with version 14

This commit is contained in:
Alek Westover
2023-07-12 13:28:15 -04:00
parent 5305548079
commit 9ff352469c
+3 -1
View File
@@ -146,6 +146,8 @@ pub async fn download_extension(
pgbin: &str,
pg_version: &str,
) -> Result<()> {
let ext_name = ext_name.replace(".so", "");
info!("DOWNLOAD EXTENSION {:?}", ext_name);
let ext_name_targz = ext_name.to_owned() + ".tar.gz";
let ext_path = RemotePath::new(
@@ -154,7 +156,7 @@ pub async fn download_extension(
.join(ext_name_targz.clone()),
)?;
let local_sharedir = Path::new(&get_pg_config("--sharedir", pgbin)).join("extension");
let local_libdir = Path::new(&get_pg_config("--libdir", pgbin)).to_owned();
let local_libdir = Path::new(&get_pg_config("--libdir", pgbin)).join("postgresql");
info!(
"Start downloading extension {:?} from {:?}",
ext_name, ext_path