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: Refactor non-supported compression error message in toast_compre
Date: Wed, 16 Jul 2025 02:59:43 +0000
Message-ID: <E1ubsMx-006Vqj-0G@gemulon.postgresql.org> (raw)

Refactor non-supported compression error message in toast_compression.c

This code used a NO_LZ4_SUPPORT() macro to issue an error in the code
paths where LZ4 [de]compression is attempted but the build does not
support it.  This commit refactors the code to use a more flexible error
message so as it can be used for other compression methods, where the
method is given in input of macro.

Extracted from a larger patch by the same author.

Author: Nikhil Kumar Veldanda <veldanda.nikhilkumar17@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Discussion: https://postgr.es/m/CAFAfj_HX84EK4hyRYw50AOHOcdVi-+FFwAAPo7JHx4aShCvunQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1dbe6f76677c26096518998fdc72dab771a98913

Modified Files
--------------
src/backend/access/common/toast_compression.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)



Message-ID: <E1ubsMx-006Vqj-0G@gemulon.postgresql.org>
Permalink:  ../E1ubsMx-006Vqj-0G@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ubsMx-006Vqj-0G@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: Refactor non-supported compression error message in toast_compre
  In-Reply-To: <E1ubsMx-006Vqj-0G@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