Hi!
When I really want to use all the resources - I set the number of jobs to a value equal to the number of CPU plus 1. Probably there is no reason to make run more jobs than number of CPU :-) .
Unfortunately, pg_dump will not allocate more than one thread to a table, even a huge one (unless it is partitioned) - so, sometimes it is no sense to define many jobs when you have one or two big tables and the rest of them are relatively small - in such situation there will be no difference if you define 4 or 10 jobs.
But, yes testing is the best way to get known :-).
Regards Tomek
Unfortunately, pg_dump will not allocate more than one thread to a table, even a huge one (unless it is partitioned) - so, sometimes it is no sense to define many jobs when you have one or two big tables and the rest of them are relatively small - in such situation there will be no difference if you define 4 or 10 jobs.
But, yes testing is the best way to get known :-).
Regards Tomek
czw., 2 lis 2023 o 02:20 Ron <ronljohnsonjr@xxxxxxxxx> napisał(a):
On 11/1/23 20:05, Brad White wrote:
Testing pg_restore with different --jobs= values will be easier. pg_dump is what's going to be reading from a constantly varying system.
--
Born in Arizona, moved to Babylonia.