This commit is contained in:
Alek Westover
2023-06-23 10:03:41 -04:00
parent 5776df15da
commit 4201f4695f
2 changed files with 5 additions and 9 deletions

View File

@@ -27,10 +27,9 @@ fn get_pg_version(pgbin: &str) -> String {
// pg_config --version returns a (platform specific) human readable string
// such as "PostgreSQL 15.4". We parse this to v14/v15
let human_version = get_pg_config("--version", pgbin);
if human_version.contains("v15") {
if human_version.contains("15") {
return "v15".to_string();
}
else if human_version.contains("v14") {
} else if human_version.contains("14") {
return "v14".to_string();
}
panic!("Unsuported postgres version {human_version}");