Restore using multiple worker jobs when archive format allows it.

Section: Selective Backup and Restore

Parallel restore

bash
bash
pg_restore -h localhost -U postgres -d appdb -j 4 appdb.dump
Explanation

See summary for usage details.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Selective Backup and Restore
List archive contents
Show archive items without restoring.
OpenIn sheetbashsame section
Restore one table
Restore only a named relation from an archive.
OpenIn sheetbashsame section
Restore schema only from archive
Restore DDL only from an archive.
OpenIn sheetbashsame section
Restore data only from archive
Restore table data without recreating objects.
OpenIn sheetbashsame section
Dump one table
Export one table definition and data.
OpenIn sheetbashsame section
Dump one schema
Export one schema from a database.
OpenIn sheetbashsame section