anchor.diff:            wal_level = archive # alias for replica on pg >= 9.6
             max_wal_senders = 10
             max_replication_slots = 10
  +        '' + optionalString atLeast12 ''
  +          ${restoreCommand}
  +          recovery_end_command = 'touch recovery.done'
           '';
           authentication = ''
             host replication ${replicationUser} all trust
  
positive.code:         slot = replicationSlot;
          directory = walBackupDir;
        };
      };
  
      testScript = ''
  
negative.code:       # prepare WAL and recovery
        $machine->succeed('chmod a+rX -R ${walBackupDir}');
        $machine->execute('for part in ${walBackupDir}/*.partial; do mv $part ''${part%%.*}; done'); # make use of partial segments too
        $machine->succeed('cp ${recoveryFile}/* ${postgresqlDataDir}/ && chmod 666 ${postgresqlDataDir}/recovery*');
  
        # replay WAL
        $machine->systemctl('start postgresql');
  