Re: Fixes for compression options of pg_receivewal and refactoring of backup_compression.{c,h}

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: gkokolatos@pm.me
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>, Robert Haas <robertmhaas@gmail.com>
Date: 2022-04-18T02:42:33Z
Lists: pgsql-hackers
On Thu, Apr 14, 2022 at 06:18:29AM +0900, Michael Paquier wrote:
> The issue back then was how to design the option set to handle all
> that (right?  My memories may be short on that), and pg_basebackup
> takes care of that with its option design.

I have looked at that again this morning, and the change is
straight-forward so I saw no reason to not do it.  And, applied.
--
Michael

Commits

  1. Handle compression level in pg_receivewal for LZ4

  2. Rework compression options of pg_receivewal

  3. Remove WalCompressionMethod in favor of pg_compress_algorithm

  4. Rename backup_compression.{c,h} to compression.{c,h}