1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-24 08:52:38 +02:00

Detect if ptrack_enable = off

This commit is contained in:
stalkerg 2016-11-15 16:23:53 +03:00
parent b9be223a4f
commit 4ceb771b96

View File

@ -663,6 +663,14 @@ pg_ptrack_support(void)
return false;
}
PQclear(res_db);
res_db = execute("show ptrack_enable", 0, NULL);
if (strcmp(PQgetvalue(res_db, 0, 0), "on") != 0)
{
PQclear(res_db);
disconnect();
return false;
}
PQclear(res_db);
disconnect();
return true;
}