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 1lrNDv-0000i4-9A for pgsql-performance@arkaria.postgresql.org; Thu, 10 Jun 2021 16:08:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lrNDu-0006x2-98 for pgsql-performance@arkaria.postgresql.org; Thu, 10 Jun 2021 16:08:02 +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 1lrNDu-0006wu-0z for pgsql-performance@lists.postgresql.org; Thu, 10 Jun 2021 16:08:02 +0000 Received: from aws.mailpen.com ([52.43.43.172] helo=aws2.mailpen.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrNDm-00081j-Rr for pgsql-performance@postgresql.org; Thu, 10 Jun 2021 16:08:01 +0000 Received: from [172.20.70.208] (unknown [50.35.114.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by aws2.mailpen.com (Postfix) with ESMTPSA id E12BCC64F7F for ; Thu, 10 Jun 2021 09:07:52 -0700 (PDT) Subject: Re: AWS forcing PG upgrade from v9.6 a disaster To: pgsql-performance@postgresql.org References: <88dec70b-eb63-0b72-0b5d-253851ef127b@mailpen.com> <92cc8563-195f-8727-d887-5f2bb63f231f@mailpen.com> <20210601041635.GQ2082@telsasoft.com> <18f77a0c-dade-b86a-cbeb-6f85d3d137e1@dunslane.net> From: "Dean Gibson (DB Administrator)" Organization: UltiMeth Systems Message-ID: Date: Thu, 10 Jun 2021 09:07:52 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <18f77a0c-dade-b86a-cbeb-6f85d3d137e1@dunslane.net> Content-Type: multipart/alternative; boundary="------------FA93FAC0C33E4B679CE0780B" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------FA93FAC0C33E4B679CE0780B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 2021-06-10 03:29, Andrew Dunstan wrote: > On 6/9/21 9:50 PM, Dean Gibson (DB Administrator) wrote: >> First, pg_dumpall (v13.3) errors out, because on RDS, you cannot be a superuser, & it tries to dump protected stuff.  If there is a way around that, I'd like to know it, even though it's not an issue now. pg_dump works OK, but of course you don't get the roles dumped. Fortunately, I kept script files that have all the database setup, so I just ran them to create all the relationships, & then used the pg_dump output.  Worked flawlessly. > This was added in release 12 specifically with RDS in mind: > >   pg_dumpall --exclude-database > > cheers, andrew I guess I don't understand what that option does: =>pg_dumpall -U Admin --exclude-database MailPen >zzz.sql pg_dump: error: could not write to output file: No space left on device pg_dumpall: error: pg_dump failed on database "MailPen", exiting I expected a tiny file, not 3.5GB.  "MailPen" is the only database (other than what's pre-installed).  Do I need quotes on the command line? --------------FA93FAC0C33E4B679CE0780B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 2021-06-10 03:29, Andrew Dunstan wrote:
On 6/9/21 9:50 PM, Dean Gibson (DB Administrator) wrote:
First, pg_dumpall (v13.3) errors out, because on RDS, you cannot be a superuser, & it tries to dump protected stuff.  If there is a way around that, I'd like to know it, even though it's not an issue now. pg_dump works OK, but of course you don't get the roles dumped. Fortunately, I kept script files that have all the database setup, so I just ran them to create all the relationships, & then used the pg_dump output.  Worked flawlessly.
This was added in release 12 specifically with RDS in mind:

  pg_dumpall --exclude-database

cheers, andrew

I guess I don't understand what that option does:

=>pg_dumpall -U Admin --exclude-database MailPen >zzz.sql
pg_dump: error: could not write to output file: No space left on device
pg_dumpall: error: pg_dump failed on database "MailPen", exiting

I expected a tiny file, not 3.5GB.  "MailPen" is the only database (other than what's pre-installed).  Do I need quotes on the command line?

--------------FA93FAC0C33E4B679CE0780B--