Re: ZStandard (with dictionaries) compression support for TOAST compression

From: Aleksander Alekseev <aleksander(at)timescale(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: ZStandard (with dictionaries) compression support for TOAST compression
Date: 2025-03-07 11:56:01
Message-ID: CAJ7c6TNUApmG9uHujg=wC0Suc8wP1VE1eSttd1KPthMoPuWGsw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Robert,

> I think that solving the problems around using a dictionary is going
> to be really hard. Can we see some evidence that the results will be
> worth it?

Compression dictionaries give a good compression ratio (~50%) and also
increase TPS a bit (5-10%) due to better buffer cache utilization. At
least according to synthetic and not trustworthy benchmarks I did some
years ago [1]. The result may be very dependent on the actual data of
course, not to mention particular implementation of the idea.

[1]: https://github.com/afiskon/zson/blob/master/docs/benchmark.md

--
Best regards,
Aleksander Alekseev

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2025-03-07 12:14:00 Re: Add contrib/pg_logicalsnapinspect
Previous Message Amit Kapila 2025-03-07 11:54:07 Re: Selectively invalidate caches in pgoutput module