@@ -413,7 +413,11 @@ def test_ptrack_uncommitted_xact(self):
413
413
backup_dir , 'node' , node , backup_type = 'ptrack' ,
414
414
options = ['--stream' ])
415
415
416
- pgdata = self .pgdata_content (node .data_dir )
416
+ # TODO: what's the point in taking pgdata content, then taking
417
+ # backup, and the trying to compare those two? Backup issues a
418
+ # checkpoint, so it will modify pgdata with close to 100% chance.
419
+ if self .paranoia :
420
+ pgdata = self .pgdata_content (node .data_dir )
417
421
418
422
self .backup_node (
419
423
backup_dir , 'node' , node , backup_type = 'ptrack' ,
@@ -427,16 +431,18 @@ def test_ptrack_uncommitted_xact(self):
427
431
backup_dir , 'node' , node_restored ,
428
432
node_restored .data_dir , options = ["-j" , "4" ])
429
433
430
- pgdata_restored = self .pgdata_content (
431
- node_restored .data_dir , ignore_ptrack = False )
434
+ if self .paranoia :
435
+ pgdata_restored = self .pgdata_content (
436
+ node_restored .data_dir , ignore_ptrack = False )
432
437
433
438
self .set_auto_conf (
434
439
node_restored , {'port' : node_restored .port })
435
440
436
441
node_restored .slow_start ()
437
442
438
443
# Physical comparison
439
- self .compare_pgdata (pgdata , pgdata_restored )
444
+ if self .paranoia :
445
+ self .compare_pgdata (pgdata , pgdata_restored )
440
446
441
447
# Clean after yourself
442
448
self .del_test_dir (module_name , fname )
0 commit comments