restore_data

Function restore_data 

Source
pub async fn restore_data(target_url: &str, input_path: &str) -> Result<()>
Expand description

Restore data using pg_restore with parallel jobs

Uses PostgreSQL directory format restore with:

  • Parallel restore for faster performance
  • Automatic decompression of compressed dump files
  • Optimized for directory format dumps created by dump_data()

The number of parallel jobs is automatically determined based on available CPU cores.