Re: change default default_toast_compression to lz4? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: change default default_toast_compression to lz4?
Date
Msg-id c755c769-54ed-4abe-8d9f-cf214fdef4a1@eisentraut.org
Whole thread Raw
In response to Re: change default default_toast_compression to lz4?  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On 24.02.26 09:01, Michael Paquier wrote:
> diff --git a/meson.build b/meson.build
> index 055e96315d0..13ef9c18477 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1133,6 +1133,8 @@ if not lz4opt.disabled()
>     if lz4.found()
>       cdata.set('USE_LZ4', 1)
>       cdata.set('HAVE_LIBLZ4', 1)
> +  else
> +    lz4 = not_found_dep
>     endif
> 
> Hmm.  Isn't this bit something that we should actually backpatch?  It
> feels wrong to not enforce lz4 to not_found_dep in this meson path.
> So this looks unrelated to the switch of the default value.

I don't think this change is correct, or at least it's not required, and 
you won't find it in the handling of other dependencies.

The point of assigning not_found_dep is to make lz4.found() return 
false, but in that particular code location lz4.found() is already false.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: change default default_toast_compression to lz4?
Next
From: Chao Li
Date:
Subject: Re: Fix bug of clearing of waitStart in ProcWakeup()