Re: Optimize pg_dump schema-only - Mailing list pgsql-general

From Tom Lane
Subject Re: Optimize pg_dump schema-only
Date
Msg-id 6788.1556488459@sss.pgh.pa.us
Whole thread Raw
In response to Re: Optimize pg_dump schema-only  (Ron <ronljohnsonjr@gmail.com>)
List pgsql-general
Ron <ronljohnsonjr@gmail.com> writes:
> On 4/28/19 3:21 PM, senor wrote:
>> I see only one CPU of 32 doing anything and it's often at 100%. Disk IO
>> is minimal. Memory use varies but always plenty to spare.

> "pg_dump --schema-only" is single-threaded.

Yup.  But ...

pg_upgrade does have a --jobs option, since 9.5 or so.  What it does
is to run the dump and restore tasks for different databases of the
cluster in parallel.  So it won't help much if you've just got one
DB with a lotta objects, but I thought it was worth mentioning.

            regards, tom lane



pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Optimize pg_dump schema-only
Next
From: senor
Date:
Subject: Re: Optimize pg_dump schema-only