1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-04 10:44:46 +02:00

add support of ptrack 1.6

This commit is contained in:
Anastasia 2018-05-21 17:37:59 +03:00
parent d1e4d2b059
commit 0b0a48ff4c

View File

@ -1164,10 +1164,10 @@ pg_ptrack_support(void)
return false;
}
/* Now we support only ptrack version 1.5 */
if (strcmp(PQgetvalue(res_db, 0, 0), "1.5") != 0)
/* Now we support only ptrack versions upper than 1.5 */
if (strverscmp(PQgetvalue(res_db, 0, 0), "1.5") < 0)
{
elog(WARNING, "Update your ptrack to the version 1.5. Current version is %s", PQgetvalue(res_db, 0, 0));
elog(WARNING, "Update your ptrack to the version 1.5 or upper. Current version is %s", PQgetvalue(res_db, 0, 0));
PQclear(res_db);
return false;
}