Re: BUG #16732: pg_dump creates broken backups - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #16732: pg_dump creates broken backups
Date
Msg-id 20201122144534.GA22488@alvherre.pgsql
Whole thread Raw
In response to Re: BUG #16732: pg_dump creates broken backups  (Zsolt Ero <zsolt.ero@gmail.com>)
Responses Re: BUG #16732: pg_dump creates broken backups
List pgsql-bugs
On 2020-Nov-22, Zsolt Ero wrote:

> Can you help me how can I do this?
> 
> Here is what I was doing before, which triggered the bug:
> 
> pg_restore --schema-only --format=custom --single-transaction $BACKUP_FILE
> 
> pg_restore --list $BACKUP_FILE > dump_list.full
> grep -v "public events_map" dump_list.full > dump_list.main
> 
> pg_restore --data-only --format=custom --use-list=dump_list.main --jobs=4
> $BACKUP_FILE

I'd do this:

pg_restore --list $BACKUP_FILE | grep -v "TABLE DATA public events_map" > dump_list
pg_restore -j4 --use_list=dump_list $BACKUP_FILE



pgsql-bugs by date:

Previous
From: Susanne & Udo Krause
Date:
Subject: probably reason of failure - not visible of false positive
Next
From: Zsolt Ero
Date:
Subject: Re: BUG #16732: pg_dump creates broken backups