We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dc3c29 commit dcf516cCopy full SHA for dcf516c
src/backup.c
@@ -1063,16 +1063,23 @@ pg_ptrack_support(void)
1063
PGresult *res_db;
1064
1065
res_db = pgut_execute(backup_conn,
1066
- "SELECT proname FROM pg_proc WHERE proname='pg_ptrack_clear'",
+ "SELECT ptrack_version()",
1067
0, NULL);
1068
1069
if (PQntuples(res_db) == 0)
1070
{
1071
PQclear(res_db);
1072
return false;
1073
}
1074
- PQclear(res_db);
1075
+ /* Now we support only ptrack version 1.3 */
1076
+ if (strcmp(PQgetvalue(res_db, 0, 0), "1.3") != 0)
1077
+ {
1078
+ PQclear(res_db);
1079
+ return false;
1080
+ }
1081
+
1082
1083
return true;
1084
1085
0 commit comments