agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add tests for low-level PGLZ [de]compression routines
Date: Tue, 14 Apr 2026 20:12:49 +0000
Message-ID: <E1wCk7t-000z5O-0O@gemulon.postgresql.org> (raw)

Add tests for low-level PGLZ [de]compression routines

The goal of this module is to provide an entry point for the coverage of
the low-level compression and decompression PGLZ routines.  The new test
is moved to a new parallel group, with all the existing
compression-related tests added to it.

This includes tests for the cases detected by fuzzing that emulate
corrupted compressed data, as fixed by 2b5ba2a0a141:
- Set control bit with read of a match tag, where no data follows.
- Set control bit with read of a match tag, where 1 byte follows.
- Set control bit with match tag where length nibble is 3 bytes
(extended case).

While on it, some tests are added for compress/decompress roundtrips,
and for check_complete=false/true.  Like 2b5ba2a0a141, backpatch to all
the stable branches.

Discussion: https://postgr.es/m/adw647wuGjh1oU6p@paquier.xyz
Backpatch-through: 14

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/caee654e05e886bf0198cdd8a1c021ca321999b8

Modified Files
--------------
src/test/regress/expected/compression_pglz.out | 65 +++++++++++++++++++++++++
src/test/regress/parallel_schedule             |  7 ++-
src/test/regress/regress.c                     | 66 ++++++++++++++++++++++++++
src/test/regress/sql/compression_pglz.sql      | 53 +++++++++++++++++++++
4 files changed, 190 insertions(+), 1 deletion(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1wCk7t-000z5O-0O@gemulon.postgresql.org>
Permalink:  ../E1wCk7t-000z5O-0O@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wCk7t-000z5O-0O@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add tests for low-level PGLZ [de]compression routines
  In-Reply-To: <E1wCk7t-000z5O-0O@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox