Re: Different compression methods for FPI
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Michael Paquier <michael@paquier.xyz>
Cc: Justin Pryzby <pryzby@telsasoft.com>, Andrey Borodin <x4mmm@yandex-team.ru>, pgsql-hackers@postgresql.org, Thomas Munro <thomas.munro@gmail.com>, Peter Geoghegan <pg@bowt.ie>
Date: 2021-06-15T01:07:12Z
Lists: pgsql-hackers
Hi, On 2021-06-15 09:50:41 +0900, Michael Paquier wrote: > On Sun, Jun 13, 2021 at 08:24:12PM -0500, Justin Pryzby wrote: > > I think it's more nuanced than just finding the algorithm with the least CPU > > use. The GUC is PGC_USERSET, and it's possible that a data-loading process > > might want to use zlib for better compress ratio, but an interactive OLTP > > process might want to use lz4 or no compression for better responsiveness. > > It seems to me that this should be a PGC_SUSET, at least? We've had > our share of problems with assumptions behind data leaks depending on > data compressibility (see ssl_compression and the kind). -1. Currently wal_compression has too much overhead for some workloads, but not for others. Disallowing normal users to set it would break cases where it's set for users that can tolerate the perf impact (which I have done at least). And the scenarios where it can leak information that couldn't otherwise be leaked already don't seem all that realistic? Greetings, Andres Freund
Commits
-
Add more error context to RestoreBlockImage() and consume it
- 0a7c9ee50062 15.0 landed
- df4a056619a7 16.0 landed
-
Add support for LZ4 with compression of full-page writes in WAL
- 4035cd5d4eee 15.0 landed
-
Extended statistics on expressions
- a4d75c86bf15 14.0 cited
-
Be clear about whether a recovery pause has taken effect.
- 32fd2b57d7f6 14.0 cited
-
Add GUC to enable compression of full page images stored in WAL.
- 57aa5b2bb11a 9.5.0 cited