Re: Compression of bigger WAL records - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: Compression of bigger WAL records
Date
Msg-id ECCAD8F2-032D-42FE-B60D-0D6EB0423FF2@yandex-team.ru
Whole thread Raw
In response to Re: Compression of bigger WAL records  (Kirill Reshke <reshkekirill@gmail.com>)
List pgsql-hackers
Hi! Thanks for looking into this!

> On 12 Jan 2025, at 23:36, Kirill Reshke <reshkekirill@gmail.com> wrote:
>
> initdb fails when configured with --without-zstd

Yes, the patch is intended to demonstrate improvement when using Zstd.

> On 12 Jan 2025, at 17:43, Andrey M. Borodin <x4mmm@yandex-team.ru> wrote:
>
> WAL_DEBUG and wal_compression are enabled for debugging purposes. Of course, I do not propose to turn them on by
default.

And this does not work well --without-zstd.

> Also pg_waldump fails with
>
> ```
> corrupted size vs. prev_size
> Aborted (core dumped)
> ```

I’ll fix that, thanks!
Also seems like I forgot to bump WAL_FILE_MAGIC…

What do you think about proposed approach?


Best regards, Andrey Borodin.


pgsql-hackers by date:

Previous
From: Robert Treat
Date:
Subject: Re: Question about behavior of deletes with REPLICA IDENTITY NOTHING
Next
From: Amit Kapila
Date:
Subject: Re: Conflict detection for update_deleted in logical replication