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 1m92K7-00078p-VC for pgsql-docs@arkaria.postgresql.org; Thu, 29 Jul 2021 09:27:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m92K4-0000U0-50 for pgsql-docs@arkaria.postgresql.org; Thu, 29 Jul 2021 09:27:24 +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 1m92K3-0000Ts-VI for pgsql-docs@lists.postgresql.org; Thu, 29 Jul 2021 09:27:23 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m92K2-0001oa-GL for pgsql-docs@lists.postgresql.org; Thu, 29 Jul 2021 09:27:23 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 3B3112E8B946 for ; Thu, 29 Jul 2021 11:27:21 +0200 (CEST) Received: from s934.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 2BD5E2E2D73C; Thu, 29 Jul 2021 11:27:21 +0200 (CEST) Received: from s476.loopia.se (unknown [172.22.191.6]) by s934.loopia.se (Postfix) with ESMTP id 29C7F7CEA0C; Thu, 29 Jul 2021 11:27:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s645.loopia.se ([172.22.191.5]) by s476.loopia.se (s476.loopia.se [172.22.190.16]) (amavisd-new, port 10024) with LMTP id 3oy6reRBEDNj; Thu, 29 Jul 2021 11:27:20 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s645.loopia.se (Postfix) with ESMTPSA id A13BF157A08B; Thu, 29 Jul 2021 11:27:20 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Another pg_dump using split and gzip for large databases From: Daniel Gustafsson In-Reply-To: <20210728234605.GA9600@momjian.us> Date: Thu, 29 Jul 2021 11:27:20 +0200 Cc: jim@jdoherty.net, pgsql-docs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <162653459215.701.6323855956817776386@wrigleys.postgresql.org> <20210728234605.GA9600@momjian.us> To: Bruce Momjian X-Mailer: Apple Mail (2.3654.120.0.1.13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 29 Jul 2021, at 01:46, Bruce Momjian wrote: > On Sat, Jul 17, 2021 at 03:09:52PM +0000, PG Doc comments form wrote: >> pg_dump ccbank | split -b 2048m --filter=3D'gzip > $FILE.gz' >=20 > Wow, odd we didn't have an example of using gzip and split together;=20= > patch attached. Maybe because the --filter option is only available in GNU split and not = in POSIX, and thus not on FreeBSD and macOS etc. I'm not sure about what = level of compatibility we strive for in the examples though. -- Daniel Gustafsson https://vmware.com/