Re: adding 'zstd' as a compression algorithm

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: adding 'zstd' as a compression algorithm
Дата
Msg-id YgxMRKT990GeZx+B@paquier.xyz
обсуждение исходный текст
Ответ на Re: adding 'zstd' as a compression algorithm  (Andres Freund <andres@anarazel.de>)
Ответы Re: adding 'zstd' as a compression algorithm
Список pgsql-hackers
On Tue, Feb 15, 2022 at 01:42:55PM -0800, Andres Freund wrote:
> I think well before removing stuff we should default to decent compression
> algorithms. E.g. -Z/--compress should probably not continue to use gzip if
> better things are available.

Which one of lz4 or zstd would it be though?  LZ4 is light on CPU, and
compresses less than zstd which is more CPU intensive with more
compression, so the choice does not look that straight-forward to me.
Both of them are better than zlib, still they are less available on
the platforms Postgres needs to provide support for.  It does not seem
really intuitive to me to have different defaults depending on the
build options provided, either :/

Saying that, I'd like to think that zstd would still be a better
default choice than LZ4.
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Column Filtering in Logical Replication
Следующее
От: Robert Haas
Дата:
Сообщение: Re: adding 'zstd' as a compression algorithm