agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
pgsql: Add tests for low-level PGLZ [de]compression routines
6+ messages / 1 participants
[nested] [flat]

* pgsql: Add tests for low-level PGLZ [de]compression routines
@ 2026-04-14 20:12  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-04-14 20:12 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_17_STABLE

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

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add tests for low-level PGLZ [de]compression routines
@ 2026-04-14 20:12  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-04-14 20:12 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6b59bd710be18636642d01da623bb61b82949152

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add tests for low-level PGLZ [de]compression routines
@ 2026-04-14 20:12  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-04-14 20:12 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add tests for low-level PGLZ [de]compression routines
@ 2026-04-14 20:12  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-04-14 20:12 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/42473d90098da256e3bf2bdf793e8b7a35de384b

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add tests for low-level PGLZ [de]compression routines
@ 2026-04-14 20:12  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-04-14 20:12 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_14_STABLE

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

Modified Files
--------------
src/test/regress/expected/.gitignore            |  1 +
src/test/regress/input/compression_pglz.source  | 47 ++++++++++++++++++
src/test/regress/output/compression_pglz.source | 61 +++++++++++++++++++++++
src/test/regress/parallel_schedule              |  7 ++-
src/test/regress/regress.c                      | 66 +++++++++++++++++++++++++
src/test/regress/sql/.gitignore                 |  1 +
6 files changed, 182 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add tests for low-level PGLZ [de]compression routines
@ 2026-04-14 20:12  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-04-14 20:12 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/67d318e70402b0eb450c7e20c0378b88e5a6df1d

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2026-04-14 20:12 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-04-14 20:12 pgsql: Add tests for low-level PGLZ [de]compression routines Michael Paquier <michael@paquier.xyz>
2026-04-14 20:12 pgsql: Add tests for low-level PGLZ [de]compression routines Michael Paquier <michael@paquier.xyz>
2026-04-14 20:12 pgsql: Add tests for low-level PGLZ [de]compression routines Michael Paquier <michael@paquier.xyz>
2026-04-14 20:12 pgsql: Add tests for low-level PGLZ [de]compression routines Michael Paquier <michael@paquier.xyz>
2026-04-14 20:12 pgsql: Add tests for low-level PGLZ [de]compression routines Michael Paquier <michael@paquier.xyz>
2026-04-14 20:12 pgsql: Add tests for low-level PGLZ [de]compression routines Michael Paquier <michael@paquier.xyz>

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