From 0b0a48ff4cebbf61568d0832acc876dccaeffc55 Mon Sep 17 00:00:00 2001 From: Anastasia Date: Mon, 21 May 2018 17:37:59 +0300 Subject: [PATCH] add support of ptrack 1.6 --- src/backup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backup.c b/src/backup.c index 57c4be51..d880a166 100644 --- a/src/backup.c +++ b/src/backup.c @@ -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; }