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 1p1IYD-0000tZ-G0 for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Dec 2022 02:46:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p1IXC-0000XL-Q7 for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Dec 2022 02:45:46 +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 1p1IXB-0000Vf-8J for pgsql-hackers@lists.postgresql.org; Sat, 03 Dec 2022 02:45:46 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p1IX5-0004dh-AZ for pgsql-hackers@lists.postgresql.org; Sat, 03 Dec 2022 02:45:42 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8FDF05C0097; Fri, 2 Dec 2022 21:45:36 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 02 Dec 2022 21:45:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1670035536; x=1670121936; bh=gwOthGczt0 U6OnqKNxuKx+hSCImjUdkl3fsVydIKSKE=; b=FaQgyWDjhn/eOiXj+tXVMq9tjx KBGHTxg5kfhsWr4xwDSN2DhrGHIn9sqqQLboqsSYVUoWCww7YjAmQgeWS3eekHWD O7weOl6KEXSn1vOiKnKJsqHZtHdHG68q78P96vvz9yD41eP4dqdFQTLZhASX5SZ0 CKbwWq2ZSOm+v53W9x5GpBrDT2oqiDgBaAimUu1rbVYPiwU/ipR1PzDPQp6I9a3a tv5hdo2XWE+UqU1jkzm6S3GlSWjws7diGbs7EEUl7YewZ1Ou+LB+YoUEb5M+5RnH bPu8wG/M2ICnzhU9XCdrW5xLipzhGDJPtn00JsKXjyvPddGKOubHTyG4ODlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1670035536; x=1670121936; bh=gwOthGczt0U6OnqKNxuKx+hSCImj Udkl3fsVydIKSKE=; b=E2iYCxdV2kRO2N1Oeybgv5P23rOUuq+lTREp2YbrBsSD 2TmRLhbSELJ2AWWqMPGo0IktMhl7lWuUmtxgYJ5cdbDm4E0+CCD/CJ+Zb49DmLfG 4RhjCW5nhyfpdik7jjM5/MEA9LoDTvjZjY58IlRNK0c6/DXx6jHCQMFnj1uMZyBb ip0SI3wR6jo2yrTGiy66jx9Q69ALo4KUItMX7kAh+y/oTKNAxIgD4RWy2Pz2lkvH fdQnzqU56Xki/SxkFC19NCyVaWGiGgtfiPU9A8thYaOpNy82Sp9Nvxg9C6NQ9ZaL Ng4GOCLGKfy9UGvOM8cQtEtXR3LZbM21DOeTzpAeOw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrtdelgdeglecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Dec 2022 21:45:34 -0500 (EST) Date: Sat, 3 Dec 2022 11:45:30 +0900 From: Michael Paquier To: gkokolatos@pm.me Cc: Justin Pryzby , pgsql-hackers@lists.postgresql.org, Rachel Heaton Subject: Re: Add LZ4 compression in pg_dump Message-ID: References: <-pU80vtiyXMfSSpn4SWOR97t71MVmDOyHaJtvGsdEfroFsFUDdc-UaqD-8LMPMw2sy-7B2_IVnlrATfVvXwtv8n3kexLePZ7iWgiOnE4jRI=@pm.me> <1j_ONBQqU3lQW7OqwbAFKbgcqjQosikcp7VPINqegLrHMCMGtFcXAuyjmW__VeviKyCbKTtucxFyPFUJ7sfqeOf4O90JEuUIe99Z5v7sdOg=@pm.me> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d6KMp92WxG2Ca89Q" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --d6KMp92WxG2Ca89Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Dec 02, 2022 at 04:15:10PM +0000, gkokolatos@pm.me wrote: > You are very correct. However one can glob after the fact. Please find > 0001 of the attached v14 which attempts to implement it. + if ($pgdump_runs{$run}->{glob_pattern}) + { + my $glob_pattern = $pgdump_runs{$run}->{glob_pattern}; + my @glob_output = glob($glob_pattern); + is(scalar(@glob_output) > 0, 1, "glob pattern matched") + } While this is correct in checking that the contents are compressed under --with-zlib, this also removes the coverage where we make sure that this command is able to complete under --without-zlib without compressing any of the table data files. Hence my point from upthread: this test had better not use compile_option, but change glob_pattern depending on if the build uses zlib or not. In order to check this behavior with defaults_custom_format, perhaps we could just remove the -Z6 from it or add an extra command for its default behavior? -- Michael --d6KMp92WxG2Ca89Q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmOKuEoACgkQnvQgOdby QH1Myw/9G9Z3i2CfSA2g5+f11Y9BPhxIGzp5nUK021LPMe85KEysJYXg/wPOvzHm 765G3TppDm0qtZf8Bf5lJOTdWmT3eqFzIPuGxI1M3UKPFhtdw16NlVfHkzHkEiXu RAamjpRH4cA1WPz9qcbz0khmEDIUG6zxgLQf7nDR6Opdmxglvhvka8tkDPE59wCn nXe3zIVoecTi1cVxRt+ip7hUBEpMPJDqQQiea3fSoo7yMnc4k8l7IGGT82shzOru RCmlTRDknXWQawplPOOcF3UGjl+zLeYfHUqZNZQC0BYzcI1mvc0WiTPbHaWBGwUV OKbCTgyMmooIaZGQ0qUFSHYBElDMKS7amYA4PM9FnhWYDbPAfz1NYENvouse89Nl K4DkQd4oQC6KThomRPJ8l162WAcMd29MufAELZ2/ySDsKdhf/ljMh2jS3J7uYzpO ssx36k/SfmNA2DFKOu9U9dsf6td0lv7E6+3VYPNEUyuUIt45/AD4+CsEGjzuVTrB YBQxjCgkwykfUn4BBNe7EWMQXvK7ilaMQHrfa6XJSKsKTRiuykzArjFlvoTVugS0 de5B3j2/uXZhMjDL3iXebIEiB9vEEfj9wlRtaoadoHeNTqHluHl3xe309zvG/7sp SyhAHROTWHcicnLhg57UMZSegxX5SY1anQXcnlVi0IkCg9Cbq+E= =a4Nw -----END PGP SIGNATURE----- --d6KMp92WxG2Ca89Q--