pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre
Date: Fri, 6 Aug 2021 09:23:58 +0900
Message-ID: <YQyBHjUIzkvTNeox@paquier.xyz> (raw)
In-Reply-To: <f59633a5-4429-aa67-8b9f-576662adb2be@dunslane.net>
References: <E1m9dnf-0003rJ-6O@gemulon.postgresql.org>
	<1bd8310a-68d7-8952-8b09-1ab06f2c75b0@dunslane.net>
	<YQYV2/T7wRxF/AEN@paquier.xyz>
	<63312654-d8f3-3957-6893-a93447ab1689@dunslane.net>
	<YQt/ECHTKjKqrBSr@paquier.xyz>
	<f59633a5-4429-aa67-8b9f-576662adb2be@dunslane.net>

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

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (7+ messages)

Message-ID: <YQyBHjUIzkvTNeox@paquier.xyz>
Permalink:  ../YQyBHjUIzkvTNeox@paquier.xyz/
Also on:    postgresql.org/message-id/YQyBHjUIzkvTNeox@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, andrew@dunslane.net
  Subject: Re: pgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre
  In-Reply-To: <YQyBHjUIzkvTNeox@paquier.xyz>
  References: <E1m9dnf-0003rJ-6O@gemulon.postgresql.org> <1bd8310a-68d7-8952-8b09-1ab06f2c75b0@dunslane.net> <YQYV2/T7wRxF/AEN@paquier.xyz> <63312654-d8f3-3957-6893-a93447ab1689@dunslane.net> <YQt/ECHTKjKqrBSr@paquier.xyz> <f59633a5-4429-aa67-8b9f-576662adb2be@dunslane.net> <YQyBHjUIzkvTNeox@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox