Re: head fails to build on SLES 12 (wal_compression=zstd)

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Justin Pryzby <pryzby(at)telsasoft(dot)com>, Devrim Gündüz <devrim(at)gunduz(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Michael Paquier <michael(at)paquier(dot)xyz>
Subject: Re: head fails to build on SLES 12 (wal_compression=zstd)
Date: 2022-03-31 16:55:18
Message-ID: CA+TgmoYkR1EzK8gZrNTa0_gmPyFHmFeshSO-ebWMqPBFjo_T_g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 31, 2022 at 12:37 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Hm. After rereading 51c0d186d I see that we're not asking for
> parallel compression unless the user tells us to, so I guess
> our fallback answer for any complaints in that area can be
> "if it hurts, don't do it".

Right. We can also tell people that if they are running buggy versions
of libzstd or liblz4 or libz, they should upgrade to non-buggy
versions. Our ability to paper over bugs in compression libraries is
going to be extremely limited.

> Still, I like the idea of having
> a well-defined minimum zstd version that we consider supported.
> The evident fact that their APIs are still changing (or at
> least have done so within the memory of LTS platforms) makes
> that fairly pressing. Question is what to set the minimum to.

I think we should aim, if we can, to be compatible with libzstd
versions that are still being shipped with still-supported releases of
mainstream Linux distributions. If that turns out to be too hard, we
can be less ambitious.

On the particular question of ZSTD_CLEVEL_DEFAULT, it does not seem
likely that the library would have only recently exposed a symbol that
is required for correct use of the API, so I bet there's a relatively
simple way to avoid needing that altogether (perhaps by writing "0"
instead).

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2022-03-31 16:56:31 Re: pgsql: Add 'basebackup_to_shell' contrib module.
Previous Message Fabien COELHO 2022-03-31 16:54:17 Re: psql - add SHOW_ALL_RESULTS option