Re: Teach pg_receivewal to use lz4 compression
Dilip Kumar <dilipbalaut@gmail.com>
From: Dilip Kumar <dilipbalaut@gmail.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: gkokolatos@pm.me, Michael Paquier <michael@paquier.xyz>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-07-12T10:27:50Z
Lists: pgsql-hackers
On Mon, Jul 12, 2021 at 3:15 PM Magnus Hagander <magnus@hagander.net> wrote: > > On Mon, Jul 12, 2021 at 11:33 AM <gkokolatos@pm.me> wrote: > > > > > > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > > > On Monday, July 12th, 2021 at 07:56, Michael Paquier <michael@paquier.xyz> wrote: > > > > > On Mon, Jul 12, 2021 at 11:10:24AM +0530, Dilip Kumar wrote: > > > > > > > On Thu, Jul 8, 2021 at 7:48 PM gkokolatos@pm.me wrote: > > > > > > > > > We can, though I am not in favour of doing so. There is seemingly > > > > > > > > > > little benefit for added complexity. > > > > > > > > I am really not sure what complexity you are talking about, do you > > > > > > > > mean since with pglz we were already providing the compression level > > > > > > > > so let it be as it is but with the new compression method you don't > > > > > > > > see much benefit of providing compression level or speed? > > > > > > You mean s/pglz/zlib/ here perhaps? I am not sure what Georgios has > > > > > > in mind, but my opinion stands on the latter: there is little benefit > > > > > > in making lz4 faster than the default and reduce compression, as the > > > > > > default is already a rather low CPU user. > > > > Thank you all for your comments. I am sitting on the same side as Micheal > > on this one. The complexity is not huge, yet there will need to be code to > > pass this option to the lz4 api and various test cases to verify for > > correctness and integrity. The burden of maintenance of this code vs the > > benefit of the option, tilt the scale towards not including the option. > > +1 for skipping that one, at least for now, and sticking to > default-only for lz4. Okay, fine with me as well. -- Regards, Dilip Kumar EnterpriseDB: http://www.enterprisedb.com
Commits
-
Fix header inclusion order in pg_receivewal.c
- f512efb2d50a 15.0 landed
-
Remove useless LZ4 system call on failure when writing file header
- f79962d8264b 15.0 landed
-
Add support for LZ4 compression in pg_receivewal
- babbbb595d23 15.0 landed
-
Rework compression options of pg_receivewal
- d62bcc8b07f9 15.0 landed
-
Clarify some errors in pg_receivewal when closing WAL segments
- cddcf7842c31 15.0 landed