From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: tony@exquisiteimages.com
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pg_dump of database with numerous objects
Date: Wed, 3 Jun 2020 16:10:55 -0400
Message-ID: <20200603201055.GA30037@alvherre.pgsql> (raw)
In-Reply-To: <6ef5dbeb1a02e0d01c5f085e4e49e496@exquisiteimages.com>
On 2020-May-31, tony@exquisiteimages.com wrote:
> I am now needing to upgrade to a new version of PostgreSQL and I am running
> into problems when pg_upgrade calls pg_dump. pg_dump stalled at: "pg_dump:
> saving database definition" for 24 hours before I killed the process.
>
> My pg_class table contains 9,000,000 entries and I have 9004 schema.
We've made a number of performance improvements to pg_dump so that it
can dump databases that are "large" in several different dimensions, but
evidently from your report it is not yet good enough when it comes to
dumping millions of tables in thousands of schemas. It will probably
take some profiling of pg_dump to figure out where the bottleneck is,
and some careful optimization work in order to make it faster. Not a
weekend job, I'm afraid :-(
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: alvherre@2ndquadrant.com, tony@exquisiteimages.com
Subject: Re: pg_dump of database with numerous objects
In-Reply-To: <20200603201055.GA30037@alvherre.pgsql>
References: <6ef5dbeb1a02e0d01c5f085e4e49e496@exquisiteimages.com> <20200603201055.GA30037@alvherre.pgsql>
* 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