| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: change default default_toast_compression to lz4? |
| Date: | 2025-11-21 16:10:14 |
| Message-ID: | ic2tfxsj73zdmhs3ogigph3k6no6rym3hiu2xcdjyb5zagkix3@64nnst4scso3 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On 2025-11-21 12:11:38 +0100, Peter Eisentraut wrote:
> How about changing the default of default_toast_compression to lz4?
>
> I have seen cases where servers had performance problems and were CPU-bound
> because of pglz TOAST compression, and changing it to lz4 relieved it
> significantly. I suspect many users are leaving easy performance
> improvements on the table by not using this option.
+1 - I also have seen *and* hit this numerous times.
IIRC it makes the tests runs a tad bit faster too.
> I suppose one issue is that lz4 support is not compiled-in by default, but
> in practice most users will have it. 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.
I think we should mark lz4 as a default-required dependency if we change the
default. That way one needs to explicitly opt into a build that won't be
compatible with existing data directories created (due to pre-existing lz4 .
Greetings,
Andres Freund
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2025-11-21 16:10:47 | Re: more C99 cleanup |
| Previous Message | Peter Eisentraut | 2025-11-21 15:57:47 | Re: Remove useless casts to (void *) |