On Thu, Jun 17, 2021 at 11:45:37AM +0500, Andrey Borodin wrote: > Konstantin, Daniil and Justin are working on compressing libpq > [0]. That would make walsender compress WAL automatically. > And we (at least I and Dan) are inclined to work on compressing > on-disk WAL as soon as libpq compression will be committed.
What's the relationship between libpq and WAL? Just the addition of zstd in the existing dependency chain? > Zstd is much better at compressing long data sequences than lz4. That's my impression. > I'm sure we will need such codec in core one day. > > Because compressing sequence of zeroes is cheap, even for pglz. But > we still need to support 'no compression at all', this mode benefits > from hole-in-a-page a lot. Until we send and store WAL uncompressed, > of cause. I am not sure, but surely this will come up in future discussions as a separate problem. -- Michael
signature.asc
Description: PGP signature