File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -202,9 +202,21 @@ get_ptrack_version(PGconn *backup_conn, PGNodeInfo *nodeInfo)
202202 else if (strcmp (ptrack_version_str , "2.1" ) == 0 )
203203 nodeInfo -> ptrack_version_num = 21 ;
204204 else
205- elog (WARNING , "Update your ptrack to the version 1.5 or upper. Current version is %s" ,
205+ elog (WARNING , "Update your ptrack to the version 2.1 or upper. Current version is %s" ,
206206 ptrack_version_str );
207207
208+ /* ptrack 1.X is buggy, so fall back to DELTA backup strategy for safety */
209+ if (nodeInfo -> ptrack_version_num >= 15 && nodeInfo -> ptrack_version_num < 20 )
210+ {
211+ if (current .backup_mode == BACKUP_MODE_DIFF_PTRACK )
212+ {
213+ elog (WARNING , "Update your ptrack to the version 2.1 or upper. Current version is %s. "
214+ "Fall back to DELTA backup." ,
215+ ptrack_version_str );
216+ current .backup_mode = BACKUP_MODE_DIFF_DELTA ;
217+ }
218+ }
219+
208220 PQclear (res_db );
209221}
210222
You can’t perform that action at this time.
0 commit comments