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 1jwWro-0001oq-43 for pgsql-general@arkaria.postgresql.org; Fri, 17 Jul 2020 20:22:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jwWrn-00055J-1R for pgsql-general@arkaria.postgresql.org; Fri, 17 Jul 2020 20:21:59 +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 1jwWrm-00055C-Qd for pgsql-general@lists.postgresql.org; Fri, 17 Jul 2020 20:21:58 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwWrj-0001yR-6u for pgsql-general@postgresql.org; Fri, 17 Jul 2020 20:21:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B89B85C005A; Fri, 17 Jul 2020 16:21:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 17 Jul 2020 16:21:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=Y OSGwrq0H0JWLNcXbD5NcUXoDJzQ0ei2tUfTN19kYwE=; b=rW1Nn546PjMgOz8Hq kre1gH1uZXK6XTWiPom1/vB7MLTaEwxZuETI0Kyq62ZLaCjP+uHDOgsjYng9Lvun HJEs5H6ZjZhtyPJM0GredN9ENNG42F+4EZH6cMWyPxrufDNJX+wyOFKPCH6knWN5 KZWhot/W4tbIlbFmgNQg9OtEcAoAw0v7R7dHQ81CTI87iatOaWi613E3kEKes8qY ck3YlRZxw8FvfvmtCAv++5n4gN34XpcxcneBwAQlNR6ygUSMoOXfuB5F6hQEZ+WG s0wD2q5mY1dLGOVC8yZIaYhan0iV4Vlk2Mlgo1+AUfGMbWAiC1lhWxf6iNAYG8EB 8DktA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=YOSGwrq0H0JWLNcXbD5NcUXoDJzQ0ei2tUfTN19kY wE=; b=evYiQM9xfv/CC1PxHIUxFxOD9UlMM/YJ2yAaaCXLrbRv00B4Pl1BYQIDN oey7qtOe/mNPIQiDXt0nZlZNADgHWZ6GAaoNfHDcjwp858jXnPt8QVG8q+RlTuC0 M5cNj4UA/hWJDRwIzN8DS5+K2p4aQRO8S556SFu2OyWs3pcl+DSULP/TmUBo+X4O YvO5k1sCdV/HvhW54VNNc//DmoCbtWEgncv7djtZF6q9nJ52SksPtK1wb1zcfgj2 V+t6h7Yc7/eAi+HYTmMCModyYgEeHXXHx69YRuw0MjFLYn2bIQ2pimRUom8Cc+Nq hRnaopa6ejXVgQAxsPaI7p+m7YiAg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrfeejgdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepveevfeevfeeugeffkeekhfegieeufffgteeujedvgffh ueejjefhkeejleegtdegnecukfhppeejhedrudejvddrhedrvdefudenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghv vghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id A34EF3280060; Fri, 17 Jul 2020 16:21:51 -0400 (EDT) Subject: Re: About compress in pg_dump To: Diego , "David G. Johnston" , Edmundo Robles Cc: pgsql-general References: <8531a4f3-15b1-4bea-4206-4a7944e82051@gmail.com> From: Adrian Klaver Message-ID: <8dc87e71-9b93-3236-5b74-e14a7a4d1599@aklaver.com> Date: Fri, 17 Jul 2020 13:21:51 -0700 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: <8531a4f3-15b1-4bea-4206-4a7944e82051@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/17/20 8:12 AM, Diego wrote: > Yep, I transfer backups files all the time with -Fc and never the > problem was rsync Using --rsyncable with gzip really helps if you rsync the compressed file to somewhere else it exists. It greatly reduces the amount of data sent for files that a do not have a massive amount of changes between syncs. > > 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. >> -- Adrian Klaver adrian.klaver@aklaver.com