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

From Daniel Gustafsson
Subject Re: change default default_toast_compression to lz4?
Date
Msg-id E2E5A720-A2DE-4F58-BA31-661EF5431A1B@yesql.se
Whole thread Raw
In response to Re: change default default_toast_compression to lz4?  (Aleksander Alekseev <aleksander@tigerdata.com>)
List pgsql-hackers
> On 21 Nov 2025, at 12:33, Aleksander Alekseev <aleksander@tigerdata.com> wrote:

>> The default could be lz4 if
>> lz4 support is built, otherwise pglz.  This would be similar to other
>> parameters where the default is the best one depending on the build
>> configuration.

+1

> Are there good reasons why we can't simply make lz4 a required
> dependency? In the worst case we could simply copy its implementation,
> the license permits.

I think we should, as much as we can, avoid vendoring code, especially
something like lz4 which can be expected to be available nearly everywhere.

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Changing the state of data checksums in a running cluster
Next
From: Shlok Kyal
Date:
Subject: Re: How can end users know the cause of LR slot sync delays?