Re: AWS forcing PG upgrade from v9.6 a disaster

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: "Dean Gibson (DB Administrator)" <postgresql(at)mailpen(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: AWS forcing PG upgrade from v9.6 a disaster
Date: 2021-06-10 16:54:55
Message-ID: CAEudQAodj-ywxc-3fgh8wK7oP8WXCoNSs0j8EF4HK+uUixTqMA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

Em qui., 10 de jun. de 2021 às 13:08, Dean Gibson (DB Administrator) <
postgresql(at)mailpen(dot)com> escreveu:

> 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?
>
See at:
https://www.postgresql.org/docs/13/app-pg-dumpall.html

Your cmd lacks =
=>pg_dumpall -U Admin --exclude-database=MailPen >zzz.sql

regards,
Ranier Vilela

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthias van de Meent 2021-06-10 16:57:08 Re: pg14b1 stuck in lazy_scan_prune/heap_page_prune of pg_statistic
Previous Message Robert Haas 2021-06-10 16:33:43 Re: Transactions involving multiple postgres foreign servers, take 2

Browse pgsql-performance by date

  From Date Subject
Next Message Vijaykumar Jain 2021-06-10 16:58:59 Re: waiting for client write
Previous Message Dean Gibson (DB Administrator) 2021-06-10 16:07:52 Re: AWS forcing PG upgrade from v9.6 a disaster