Re: WAL compression setting after PostgreSQL LZ4 default change - Mailing list pgsql-hackers

From Tomas Vondra
Subject Re: WAL compression setting after PostgreSQL LZ4 default change
Date
Msg-id 438ce1b2-54d5-4730-99aa-47b9b8f97a19@vondra.me
Whole thread
In response to Re: WAL compression setting after PostgreSQL LZ4 default change  (Hannu Krosing <hannuk@google.com>)
List pgsql-hackers

On 8/7/26 10:34, Andrey Borodin wrote:
> Tomas, thanks for benchmarks! I agree that x2 WAL reduction actually makes Zstd
> a good default when wal_compression = on.
> 
>> On 7 Aug 2026, at 13:23, Tomas Vondra <tomas@vondra.me> wrote:
>>
>> 8.25%  postgres  libzstd.so.1.5.7  [.] ZSTD_createDCtx_internal
> 
> (sorry for offtopic)
> 
> That's an interesting profile.
> Along with published patch to retain compression context we can also
> retain decompression context. But that's for PG20 anyway.
> 

Right, there may be a way to make the zstd decompression cheaper. But
it's too late for PG19.


regards

-- 
Tomas Vondra




pgsql-hackers by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Random 038_walsnd_shutdown_timeout.pl failure on goldfish
Next
From: shveta malik
Date:
Subject: Re: Distinguish publication exclusions in object addresses