From 4ceb771b96dd296c748317aec4d8a68cd991f9c4 Mon Sep 17 00:00:00 2001 From: stalkerg Date: Tue, 15 Nov 2016 16:23:53 +0300 Subject: [PATCH] Detect if ptrack_enable = off --- backup.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backup.c b/backup.c index c7453dbe..4bfe0228 100644 --- a/backup.c +++ b/backup.c @@ -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; }