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 1mBnep-00067p-2T for pgsql-committers@arkaria.postgresql.org; Fri, 06 Aug 2021 00:24:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mBnen-00073S-Tx for pgsql-committers@arkaria.postgresql.org; Fri, 06 Aug 2021 00:24:13 +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 1mBnem-00073K-Fd for pgsql-committers@lists.postgresql.org; Fri, 06 Aug 2021 00:24:13 +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 1mBnej-00019W-4p for pgsql-committers@lists.postgresql.org; Fri, 06 Aug 2021 00:24:12 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0091B5C00F5; Thu, 5 Aug 2021 20:24:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 05 Aug 2021 20:24:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=PazjK1+kMQRR8IMgy+klvuOEwaA mkTpibVffde6AUXM=; b=avGRk7yhL6NNy0ABjG2hOJTVpcz4g1b3omqND5E7tYb OjQPGKrakma9inJ5J+835Mgj8PIigJC8hGrTb0SZM9qBFbiYhft1ata8u7aUO+8e SRZU9Wdx3lEzKggOzTCCiALe2qMLxxITTjhf9+lQCwKMMC8edxXZ11hxErZy57lV 6lLH4dycqVN/gRV7kXTc0fQdyFfVzUEk+Fdo8Fvg+xfPsUeXD8Jine6jc6dPCBrP OGxlgWtZ7OVd+rU2NLLuIQiPVaa2VVIxt8ab15Ar3qdeFGI7zEVmOV9QZYFcPX4P +W7DD2czxELlT/vWAN2uVB0L1OVmPnN/YSM8f2u7YwQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=PazjK1 +kMQRR8IMgy+klvuOEwaAmkTpibVffde6AUXM=; b=Hvl5lF44dwBQ7FV6xKhs7b c76TnJZkgcroYKYfpDUkP5/XRp632DmgX3U3eQCaSD5rW+/BhvpPbpQtLxkBjQif Tn4BTaPyUyrZHNUMdh6PbZNsf02j9akBGXq4Cf6b5+Y7Coujkza9qMzVwvPKAlAu tnvCPs2TvWsgUIGqK/67fUNy9o1S7iejx0vtIboMxqL6/FS+uGSGsu0I7JhqxxTh oYyvH4c17IGJnYS0GFeG089WNbAj3lOPQdyBXdPnWZaQqEdYpH0/wyB66hRYxO3P o4vpB97yyvihC3NvCWcT3p68uQ20M0v0VloOM2EoWlsd0vj15o4C096PTx/o0vqg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjedtgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtdorredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepheegtdeuheekteegueevtdelleek geegfeetfeejjefgkeehieekveejhedujeehnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Aug 2021 20:24:04 -0400 (EDT) Date: Fri, 6 Aug 2021 09:23:58 +0900 From: Michael Paquier To: Andrew Dunstan Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre Message-ID: References: <1bd8310a-68d7-8952-8b09-1ab06f2c75b0@dunslane.net> <63312654-d8f3-3957-6893-a93447ab1689@dunslane.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vbo6g9bLfmLeORKu" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --vbo6g9bLfmLeORKu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Aug 05, 2021 at 11:49:01AM -0400, Andrew Dunstan wrote: > Yeah, pretty much. I wonder what zlib API the pg_receivewal tests are > tickling that other tests have not? The main issue is that this is the first test suite stressing directly zlib internals, as we only use gzread(), gzwrite() and gzflush() within pg_dump/ and pg_basebackup/. And there is currently no coverage of pg_dump --compress. My guess is that nobody tackled this issue because of the need to make the tests conditional depending on the compilation options. Saying that, I recall two error patterns from this thread's experience thanks to the specific error messages we have in pg_receivewal for the handling of the WAL segments: - gzopen(), followed by gzwrite() failing on EACCES. - gzopen(), followed by gzflush() failing. -- Michael --vbo6g9bLfmLeORKu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmEMgR4ACgkQnvQgOdby QH3JRg//XjPb6WEcIHJw3rxTsCqrkl29E5qnuaOMg0ZIRbZ3yZEcuAa31IhaC1Qt cbnLQP+0x335lLGBbSyglv8bxZUl4FafKQPplGGSLKYIW6dSPb4KgyLOpgKXlPQc RF9DQAlKN9RYgnVMoW39hGdm+0WkRjR8mFl6me4K7DCCCjptpCst6gUd6L5/vF2/ 9xRnNIe9YzmNJsL4IsObbxoMa3/gSVBC+xeb+vY/R+YouRyd5D71OAV4DoyYU6iC 8vl98K7ylR44eBGZlatsgJL8ZqntNzOsbl9tk28AoDjYykhaoQwA4QLlgmcIFcrb hDlBe93VSLuwDNb6r+r0CBpDjiNfJeFL4Hc7AFnP4MB5lGhPc+UCj6g5idc7L8r+ NBZPny7OfhHNmKnzrKSYRQmflKcbWu8KdBSWkjJ4qg2XOaQ1mEpzPSoyqlYKTnk/ 9c7kpYdVX9WFBVzTCbWR5ZOG49Af1JljH86yYSir5RbjMWTbhB4L+MzvMps1EEnh /0IaeW8rr5+JB5HkWqi5Rdj9WnLM8Cyrd02Ro9l0FNrdW+ozOjvacvZIWt3EPJif NR70KzKTkeG3n+EJV0CI4dzVbOaq6eQiTq1vh+g8g+CinFFyJ8/kOmfsR37eyDFm KZqUbPzd4GvSY9YUhahyZqoEhjwRVXi6D1ZRDxojQOIeaFbm4AA= =kZT0 -----END PGP SIGNATURE----- --vbo6g9bLfmLeORKu--