Skip to content

Commit 4ceb771

Browse files
committed
Detect if ptrack_enable = off
1 parent b9be223 commit 4ceb771

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

backup.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,14 @@ pg_ptrack_support(void)
663663
return false;
664664
}
665665
PQclear(res_db);
666+
res_db = execute("show ptrack_enable", 0, NULL);
667+
if (strcmp(PQgetvalue(res_db, 0, 0), "on") != 0)
668+
{
669+
PQclear(res_db);
670+
disconnect();
671+
return false;
672+
}
673+
PQclear(res_db);
666674
disconnect();
667675
return true;
668676
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy