Re: change default default_toast_compression to lz4?

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter(at)eisentraut(dot)org>
Subject: Re: change default default_toast_compression to lz4?
Date: 2025-11-21 12:27:28
Message-ID: E2E5A720-A2DE-4F58-BA31-661EF5431A1B@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 21 Nov 2025, at 12:33, Aleksander Alekseev <aleksander(at)tigerdata(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Shlok Kyal 2025-11-21 12:51:19 Re: How can end users know the cause of LR slot sync delays?
Previous Message Tomas Vondra 2025-11-21 12:17:09 Re: Changing the state of data checksums in a running cluster