Re: About compress in pg_dump - Mailing list pgsql-general

From David G. Johnston
Subject Re: About compress in pg_dump
Date
Msg-id CAKFQuwbEQx5A6ih9hHjf2ZZbaFfeqXS5WeAavQ-BwiDiAHYfzA@mail.gmail.com
Whole thread Raw
In response to About compress in pg_dump  (Edmundo Robles <edmundo@sw-argos.com>)
Responses Re: About compress in pg_dump
List pgsql-general
On Fri, Jul 17, 2020 at 7:49 AM Edmundo Robles <edmundo@sw-argos.com> wrote:
To backup  a database  I do:
 nice -n +19  pg_dump -Fc  database | nice -n +19 gzip --rsyncable   -nc >  database.dump

If -Fc  option  is compressed  by default  I dont need gzip the backup,  but I need pass --rsyncable  and -n options.

How can  I pass  gzip options  to compress in pg_dump?

pg_dump isn't using the gzip program, it's just performing compression per the gzip compression specification, and doesn't provide those two features to control it's processing (or any features beyond what's documented on the pg_dump reference page).

David J.

pgsql-general by date:

Previous
From: Edmundo Robles
Date:
Subject: About compress in pg_dump
Next
From: Diego
Date:
Subject: Re: About compress in pg_dump