May 2019
Intermediate to advanced
600 pages
20h 46m
English
If you've taken a logical backup using the pg_dump utility in a custom file, then you can simply extract the table you want from the dumpfile, like so:
pg_restore -t mydroppedtable dumpfile | psql
Alternatively, you can directly connect to the database using -d. If you use this option, then you can allow multiple jobs in parallel with the -j option.
When working with just one table, as in this case, this is useful only if there are things that can be done at the same time, that is, if the table has more than one index and/or constraint. More details about parallel restore are available in the Improving performance of backup/recovery recipe, later in this chapter.
Note that PostgreSQL can ...
Read now
Unlock full access