pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Handle compression level in pg_receivewal for LZ4
Date: Mon, 18 Apr 2022 01:19:21 +0000
Message-ID: <E1ngG2z-0010Ou-M6@gemulon.postgresql.org> (raw)

Handle compression level in pg_receivewal for LZ4

The new option set of pg_receivewal introduced in 042a923 to control the
compression method makes it now easy to pass down various options,
including the compression level.  The change to be able to do is simple,
and requires one LZ4F_preferences_t fed to LZ4F_compressBegin().

Note that LZ4F_INIT_PREFERENCES could be used to initialize the contents
of LZ4F_preferences_t as required by LZ4, but this is only available
since v1.8.3.  memset()'ing its structure to 0 is enough.

Discussion: https://postgr.es/m/YlPQGNAAa04raObK@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/42e44f3b3830cbc051a5d83956546e2ef553b047

Modified Files
--------------
src/bin/pg_basebackup/walmethods.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)



Message-ID: <E1ngG2z-0010Ou-M6@gemulon.postgresql.org>
Permalink:  ../E1ngG2z-0010Ou-M6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ngG2z-0010Ou-M6@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Handle compression level in pg_receivewal for LZ4
  In-Reply-To: <E1ngG2z-0010Ou-M6@gemulon.postgresql.org>
  References: <E1ngG2z-0010Ou-M6@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox