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:
parent
aa336b4e50
commit
23497fb78d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user