From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Optimize pg_dump schema-only
Date: Sun, 28 Apr 2019 17:54:19 -0400
Message-ID: <6788.1556488459@sss.pgh.pa.us> (raw)
In-Reply-To: <17505fec-be0a-526a-9ee5-18bb0408a62a@gmail.com>
References: <BYAPR01MB3701AF2EFA014CC16EA14119F7380@BYAPR01MB3701.prod.exchangelabs.com>
<17505fec-be0a-526a-9ee5-18bb0408a62a@gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com
Subject: Re: Optimize pg_dump schema-only
In-Reply-To: <6788.1556488459@sss.pgh.pa.us>
References: <BYAPR01MB3701AF2EFA014CC16EA14119F7380@BYAPR01MB3701.prod.exchangelabs.com> <17505fec-be0a-526a-9ee5-18bb0408a62a@gmail.com> <6788.1556488459@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox