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 1jwS2j-0007y1-5Y for pgsql-general@arkaria.postgresql.org; Fri, 17 Jul 2020 15:12:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jwS2h-00038m-SA for pgsql-general@arkaria.postgresql.org; Fri, 17 Jul 2020 15:12:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwS2h-00036U-IB for pgsql-general@lists.postgresql.org; Fri, 17 Jul 2020 15:12:55 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jwS2e-0007YH-Kd for pgsql-general@postgresql.org; Fri, 17 Jul 2020 15:12:54 +0000 Received: by mail-qk1-x735.google.com with SMTP id r22so9003800qke.13 for ; Fri, 17 Jul 2020 08:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=TogciTif0cFjuEc4yMLqqTRAwref6IgTf7V0Un9OLP0=; b=K8TWFSrTll3Zxgic/1NRYWOF6lODbGXvqoakxrMpg6v5MQg08qExhsljBBkE0Ap50L Gv+jROC2rqBilcEFwGg6Fmzx3feGQsUomXp5q4cBw6FM/cSfcFEnXItBoWADdprA4ZHN BA3BUsDCriM89Y7V2WbPVm/R9hs4XVmK6PYhj9P321AB3vUwqXMtAHETfQfAX3lnB5Hf z+1mWC4hkdMg0tUImywlhqVPy/irhMZTBuve1x/SecQAl3zJBb+HIX/6jtqY8oPP26KS IRb7KSazRMZCbrxyjERyfnB1Gn1IekO6PtpznMbFRC8U403zEYF6iWyqJdg8Zu+ClMi7 NK7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=TogciTif0cFjuEc4yMLqqTRAwref6IgTf7V0Un9OLP0=; b=CVk2q2Ee1xyZ/yJ1oTBH2tXBqt0X0Vu32aMp8AJQ5w5qrpd6k1mDQSKZEsdMd1FtaM 2pbsvILs7Ef/H/tXQNsgPkuCUk2PbWAFCzq1Uc0eMnVJ2OBsAi6G1+S9z7zs28JpCQKT Wl22QfoXab0XsPh/pNeUBe7C3j6RkUjUiL/sTgNhjlHmObooAk01Xj7s8SP7PIKlozfb R5Md8ApmtlbBP4tETg8jG6VafQdkvUZR9uOZVLqqHm/P+CmtHEwSk5eC6GYNjLeDKwLK 1zGKaTj1cza9Q3m56KHq0J3qrXK+2Ms5Zxqy0X9/NKNAs/lhNGjOHBA9gxhsh2Nmi2wA 4VJQ== X-Gm-Message-State: AOAM5324BvNQ81iSv+5HQBxjkYWxzVl4OU9voTlnAJqnFIH+XCtp8frC 7/O/cYozfnC5DTwK85lNcsFYNeaq X-Google-Smtp-Source: ABdhPJxBgyfu0CGm3NkE8yTfYFgThozsErShbU40LUQGA6pH+QkizPTYd74RS8ewYiExh9XXf71M/Q== X-Received: by 2002:a37:a643:: with SMTP id p64mr9311572qke.214.1594998770878; Fri, 17 Jul 2020 08:12:50 -0700 (PDT) Received: from [192.168.0.150] ([190.177.24.139]) by smtp.gmail.com with ESMTPSA id d19sm9295032qko.114.2020.07.17.08.12.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jul 2020 08:12:50 -0700 (PDT) From: Diego X-Google-Original-From: Diego Subject: Re: About compress in pg_dump To: "David G. Johnston" , Edmundo Robles Cc: pgsql-general References: Message-ID: <8531a4f3-15b1-4bea-4206-4a7944e82051@gmail.com> Date: Fri, 17 Jul 2020 12:12:47 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------E35FEE85067956867AEC257C" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------E35FEE85067956867AEC257C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Yep, I transfer backups files all the time with -Fc and never the problem was rsync On 2020-07-17 12:07, David G. Johnston wrote: > On Fri, Jul 17, 2020 at 7:49 AM Edmundo Robles > 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. > --------------E35FEE85067956867AEC257C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Yep, I transfer backups files all the time with -Fc and never the problem was rsync

On 2020-07-17 12:07, David G. Johnston wrote:
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.

--------------E35FEE85067956867AEC257C--