Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0b0a48f

Browse files
committed
add support of ptrack 1.6
1 parent d1e4d2b commit 0b0a48f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,10 +1164,10 @@ pg_ptrack_support(void)
11641164
return false;
11651165
}
11661166

1167-
/* Now we support only ptrack version 1.5 */
1168-
if (strcmp(PQgetvalue(res_db, 0, 0), "1.5") != 0)
1167+
/* Now we support only ptrack versions upper than 1.5 */
1168+
if (strverscmp(PQgetvalue(res_db, 0, 0), "1.5") < 0)
11691169
{
1170-
elog(WARNING, "Update your ptrack to the version 1.5. Current version is %s", PQgetvalue(res_db, 0, 0));
1170+
elog(WARNING, "Update your ptrack to the version 1.5 or upper. Current version is %s", PQgetvalue(res_db, 0, 0));
11711171
PQclear(res_db);
11721172
return false;
11731173
}

0 commit comments

Comments
 (0)