pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Extend TAP tests of pg_dump to test for compression with gzip
Date: Tue, 05 Apr 2022 10:11:34 +0000
Message-ID: <E1nbg9t-000Pt4-V3@gemulon.postgresql.org> (raw)

Extend TAP tests of pg_dump to test for compression with gzip

The test logic is extended with two new concepts:
- Addition of a compression command called compress_cmd, executed
between restore_cmd and dump_cmd to control the contents of the dumps.
In the case of this commit, this is used to compress or decompress
elements of a dump to test new code paths.
- Addition of a new flag called compile_option, to check if a set of
tests can be executed depending on the ./configure options used in a
given build.

The tests introduced here are for gzip, but they are designed so as they
can easily be extended for new compression methods.

Author: Georgios Kokolatos, Rachel Heaton
Discussion: https://postgr.es/m/faUNEOpts9vunEaLnmxmG-DldLSg_ql137OC3JYDmgrOMHm1RvvWY2IdBkv_CRxm5spCCb_OmKNk2T03...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/98fe74218d97becb2a53581304c96091409fd929

Modified Files
--------------
src/bin/pg_dump/Makefile         |  2 +
src/bin/pg_dump/t/002_pg_dump.pl | 93 +++++++++++++++++++++++++++++++++++++++-
2 files changed, 93 insertions(+), 2 deletions(-)



Message-ID: <E1nbg9t-000Pt4-V3@gemulon.postgresql.org>
Permalink:  ../E1nbg9t-000Pt4-V3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nbg9t-000Pt4-V3@gemulon.postgresql.org

 · 

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
  Subject: Re: pgsql: Extend TAP tests of pg_dump to test for compression with gzip
  In-Reply-To: <E1nbg9t-000Pt4-V3@gemulon.postgresql.org>
  References: <E1nbg9t-000Pt4-V3@gemulon.postgresql.org>

* 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