Provide for parallel restoration from a custom format archive. Each data and
Andrew Dunstan <andrew@dunslane.net>
Provide for parallel restoration from a custom format archive. Each data and post-data step is run in a separate worker child (a thread on Windows, a child process elsewhere) up to the concurrent number specified by the new pg_restore command-line --multi-thread | -m switch. Andrew Dunstan, with some editing by Tom Lane.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pg_restore.sgml | modified | +23 −1 |
| src/bin/pg_dump/pg_backup_archiver.c | modified | +1190 −168 |
| src/bin/pg_dump/pg_backup_archiver.h | modified | +24 −6 |
| src/bin/pg_dump/pg_backup_custom.c | modified | +93 −11 |
| src/bin/pg_dump/pg_backup_db.c | modified | +29 −18 |
| src/bin/pg_dump/pg_backup_files.c | modified | +4 −1 |
| src/bin/pg_dump/pg_backup.h | modified | +12 −2 |
| src/bin/pg_dump/pg_backup_null.c | modified | +4 −1 |
| src/bin/pg_dump/pg_backup_tar.c | modified | +4 −2 |
| src/bin/pg_dump/pg_dump.c | modified | +106 −61 |
| src/bin/pg_dump/pg_restore.c | modified | +20 −5 |