On Tue, Aug 4, 2026 at 12:01 PM Tomas Vondra <[email protected]> wrote: > > On 8/4/26 09:03, Hannu Krosing wrote: > > On Mon, Aug 3, 2026 at 10:36 PM Tomas Vondra <[email protected]> wrote: ...
> > It's a bit more complicated than that - we use zstd level 1 while the > > default for the zstd command-line utility is level 3 > > > > We should keep this in mind when running any manual compression tests. > > > > Are you sure? Because I see xloginsert.c does this: > > len = ZSTD_compress(dest, COMPRESS_BUFSIZE, source, orig_len, > ZSTD_CLEVEL_DEFAULT); > > and ZSTD_CLEVEL_DEFAULT (=3) is the constant from zstd library. So at > least for WAL we should be using the "normal" compression level. Yes, you are right. I was confused by development-time list discussions which mostly talked about using level=1, even though the default was 3 (or even 6) --- Hannu
