Re: About compress in pg_dump

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Edmundo Robles <edmundo(at)sw-argos(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: About compress in pg_dump
Date: 2020-07-17 15:07:31
Message-ID: CAKFQuwbEQx5A6ih9hHjf2ZZbaFfeqXS5WeAavQ-BwiDiAHYfzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jul 17, 2020 at 7:49 AM Edmundo Robles <edmundo(at)sw-argos(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Diego 2020-07-17 15:12:47 Re: About compress in pg_dump
Previous Message Edmundo Robles 2020-07-17 14:48:30 About compress in pg_dump