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 1jfPWl-0003Fp-UU for pgsql-general@arkaria.postgresql.org; Sun, 31 May 2020 15:05:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jfPWk-0000b9-PI for pgsql-general@arkaria.postgresql.org; Sun, 31 May 2020 15:05:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jfPWk-0000b1-6Q for pgsql-general@lists.postgresql.org; Sun, 31 May 2020 15:05:30 +0000 Received: from bay.acenet.us ([173.230.252.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jfPWi-0000XO-0q for pgsql-general@lists.postgresql.org; Sun, 31 May 2020 15:05:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=exquisiteimages.com; s=default; h=Message-ID:Subject:To:From:Date: Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WxYw0J0H5ZdzAz37b6SRNGQrW2QoxfFGvCqoUVJ64Bg=; b=sFzt6O9AiSwWll1VovDTlUj3E 8FSOb1cVo4+/PvyOA8zrQkJ69Th+wtw+0fVqGwQCFqKocNwZ3UavkoJEqiIL6/GWSQTLh3M7Sv13x Pzk33l1i16jtnzYYCDDa1NNK/2DCo20LYEoGFXYPtbgZSw7Aa9M8Lj+KcTjKh38rSSjOXYtqKdSSq 23h1DkQ7+pW3KvsY7IlfbFTG3d2G4E6EUuwVgnuAXvZZsByJe+sNq9f97xy7rXmwiurQFKruLCaOB bvw5fTuoEpvpIm25/bfU95REeO/bnovDPG7Ree6n7hA1GaSw/NTcyJlPCbxZmNZh7CaJZqWQFeXl7 QPL+RHoXQ==; Received: from [::1] (port=56204 helo=bay.acenet.us) by bay.acenet.us with esmtpa (Exim 4.93) (envelope-from ) id 1jfPWg-009Ysm-6V for pgsql-general@lists.postgresql.org; Sun, 31 May 2020 11:05:26 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 31 May 2020 11:05:26 -0400 From: tony@exquisiteimages.com To: pgsql-general@lists.postgresql.org Subject: pg_dump of database with numerous objects Message-ID: <6ef5dbeb1a02e0d01c5f085e4e49e496@exquisiteimages.com> X-Sender: tony@exquisiteimages.com User-Agent: Roundcube Webmail/1.3.8 X-OutGoing-Spam-Status: No, score=5.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - exquisiteimages.com X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: tony@exquisiteimages.com X-Authenticated-Sender: bay.acenet.us: tony@exquisiteimages.com X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I have always used pg_basebackup to backup my database and I have never had any issues. 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. I was able to get output from pg_dump if I used the -n option to dump schema with wildcards. I was able to use -n 'data???x' where x was a digit from 0 to 9. This way I was able to execute 10 concurrent pg_dump processes and dump the database in 30 minutes. I then dumped the public schema and used pg_dumpall to dump the globals. Can anyone tell me if there is something else I need to do to manually dump the database? What I did do seems to have restored correctly on the upgraded server, but if I want to make sure that I haven't missed anything that will creep up on me.