Transfer of PostgreSQL WAL files with security checks