Check for ptrack.map_size = -1 for ptrack >= 2.1

This commit is contained in:
Alexey Kondratov
2020-05-21 14:00:17 +03:00
committed by Grigory Smolkin
parent aa336b4e50
commit 23497fb78d
+2 -1
View File
@@ -235,7 +235,8 @@ pg_ptrack_enable(PGconn *backup_conn, int ptrack_version_num)
else
{
res_db = pgut_execute(backup_conn, "SHOW ptrack.map_size", 0, NULL);
result = strcmp(PQgetvalue(res_db, 0, 0), "0") != 0;
result = strcmp(PQgetvalue(res_db, 0, 0), "0") != 0 &&
strcmp(PQgetvalue(res_db, 0, 0), "-1") != 0;
}
PQclear(res_db);