Recovering a complete database is also required sometimes. It's actually a lot easier than recovering a single table. Many users choose to place all their tables in a single database; in that case, this recipe isn't relevant.
The methods differ, depending on the type of backup you have available. If you have multiple types of backup, you have a choice.
Recreate the database in the original server using parallel tasks to speed things along. This can be executed remotely without needing to transfer the dumpfile between systems, as shown in the following example, where we use the
-j option to specify four parallel processes:
pg_restore -h myhost -d postgres --create ...