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.nikhilkuma...@gmail.com>
Reviewed-by: Kirill Reshke <reshkekir...@gmail.com>
Discussion: 
https://postgr.es/m/cafafj_hx84ek4hyryw50aohocdvi-+ffwaapo7jhx4ashcv...@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(-)

Reply via email to