Compare commits

...

2 Commits

Author SHA1 Message Date
Alek Westover
595baa386e alphabetize 2023-08-23 13:24:42 -04:00
Alek Westover
bb8ca7c7fd allow v16 2023-08-23 13:23:51 -04:00

View File

@@ -108,10 +108,12 @@ pub 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("15") {
return "v15".to_string();
} else if human_version.contains("14") {
if human_version.contains("14") {
return "v14".to_string();
} else if human_version.contains("15") {
return "v15".to_string();
} else if human_version.contains("16") {
return "v16".to_string();
}
panic!("Unsuported postgres version {human_version}");
}