Re: pg_upgrade --jobs - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_upgrade --jobs
Date
Msg-id 16144.1554588125@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_upgrade --jobs  (senor <frio_cervesa@hotmail.com>)
Responses Re: pg_upgrade --jobs
List pgsql-general
senor <frio_cervesa@hotmail.com> writes:
> Since pg_upgrade is in control of how it is calling pg_dump, is there a reason pg_upgrade cannot use the directory
outputformat when calling pg_dump? Is the schema-only operation incompatible? 

Well, there's no point in it.  pg_dump can only parallelize data dumping,
and there's none to be done in the --schema-only case that pg_upgrade
uses.

Also, since pg_upgrade *does* use parallelism across multiple pg_dump
calls (if you've got multiple databases in the cluster), it'd be a bit
problematic to have another layer of parallelism below that, if it did
indeed do anything.  You don't want "--jobs=10" to suddenly turn into
100 sessions.

            regards, tom lane



pgsql-general by date:

Previous
From: senor
Date:
Subject: Re: pg_upgrade --jobs
Next
From: senor
Date:
Subject: Re: pg_upgrade --jobs