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.
2 parents 38726e7 + 57e7bc4 commit c422b68Copy full SHA for c422b68
src/backup.c
@@ -1063,9 +1063,18 @@ pg_ptrack_support(void)
1063
PGresult *res_db;
1064
1065
res_db = pgut_execute(backup_conn,
1066
- "SELECT ptrack_version()",
+ "SELECT proname FROM pg_proc WHERE proname='ptrack_version'",
1067
0, NULL);
1068
+ if (PQntuples(res_db) == 0)
1069
+ {
1070
+ PQclear(res_db);
1071
+ return false;
1072
+ }
1073
1074
1075
+ res_db = pgut_execute(backup_conn,
1076
+ "SELECT ptrack_version()",
1077
+ 0, NULL);
1078
if (PQntuples(res_db) == 0)
1079
{
1080
PQclear(res_db);
0 commit comments