1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-25 09:01:48 +02:00

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

This commit is contained in:
Alexey Kondratov 2020-05-08 17:42:22 +03:00 committed by Grigory Smolkin
parent aa336b4e50
commit 23497fb78d

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);