Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jfULM-0005aw-G7 for pgsql-general@arkaria.postgresql.org; Sun, 31 May 2020 20:14:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jfULL-0005k3-Eo for pgsql-general@arkaria.postgresql.org; Sun, 31 May 2020 20:14:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jfULL-0005jw-6v for pgsql-general@lists.postgresql.org; Sun, 31 May 2020 20:14:03 +0000 Received: from smtp88.ord1c.emailsrvr.com ([108.166.43.88]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jfULJ-0002v2-5R for pgsql-general@lists.postgresql.org; Sun, 31 May 2020 20:14:02 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp12.relay.ord1c.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id D902FC0095; Sun, 31 May 2020 16:13:56 -0400 (EDT) X-Sender-Id: xof@thebuild.com Received: from [10.1.10.13] (50-76-33-78-ip-static.hfc.comcastbusiness.net [50.76.33.78]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:587 (trex/5.7.12); Sun, 31 May 2020 16:13:58 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.5\)) Subject: Re: pg_dump of database with numerous objects From: Christophe Pettus In-Reply-To: Date: Sun, 31 May 2020 13:13:57 -0700 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <6ef5dbeb1a02e0d01c5f085e4e49e496@exquisiteimages.com> <00424372-5321-4183-9CBB-BBFC8585ECE7@thebuild.com> To: tony@exquisiteimages.com X-Mailer: Apple Mail (2.3445.9.5) X-Classification-ID: bffb4ce2-7316-4fd2-a7b7-6ccd273cfa0c-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On May 31, 2020, at 13:10, tony@exquisiteimages.com wrote: >=20 > On 2020-05-31 13:08, Christophe Pettus wrote: >>> On May 31, 2020, at 08:05, tony@exquisiteimages.com wrote: >>> My pg_class table contains 9,000,000 entries and I have 9004 schema. >> Which version of pg_dump are you running? Older versions (don't have >> the precise major version in front of me) have N^2 behavior on the >> number of database objects being dumped. >=20 > I am upgrading from 9.3 To which version? You might try the dump with the version of pg_dump = corresponding to the PostgreSQL version you are upgrading *to* (which is = recommended practice, anyway) to see if that improves matters. -- -- Christophe Pettus xof@thebuild.com