From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add regression test for short varlenas saved in TOAST relations |
Date: | 2025-08-06 08:30:43 |
Message-ID: | E1ujZXn-00111o-0q@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Add regression test for short varlenas saved in TOAST relations
toast_save_datum() has for a very long time some code able to handle
short varlenas (values up to 126 bytes reduced to a 1-byte header),
converting such varlenas to an external on-disk TOAST pointer with the
value saved uncompressed in the secondary TOAST relation.
There was zero coverage for this code path. This commit adds a test
able to exercise it, relying on two external attributes, one with a low
toast_tuple_target, so as it is possible to trigger the threshold for
the insertion of short varlenas into the TOAST relation.
Author: Nikhil Kumar Veldanda <veldanda(dot)nikhilkumar17(at)gmail(dot)com>
Co-authored-by: Michael Paquier <michael(at)paquier(dot)xyz>
Discussion: https://postgr.es/m/aJAl7-NvIk0kZByz@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/225ebfe30a1ae9fda74f3d8f98ea6fa511b60624
Modified Files
--------------
src/test/regress/expected/strings.out | 34 ++++++++++++++++++++++++++++++++++
src/test/regress/sql/strings.sql | 20 ++++++++++++++++++++
2 files changed, 54 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Dean Rasheed | 2025-08-06 08:45:32 | pgsql: Convert src/tools/testint128.c into a test module. |
Previous Message | Fujii Masao | 2025-08-06 07:50:22 | pgsql: doc: Recommend ANALYZE after ALTER TABLE ... SET EXPRESSION AS. |