> On 31 Jan 2025, at 08:37, wenhui qiu <qiuwenhu...@gmail.com> wrote: > > Hi Andery > I have a question ,If wal_compression_threshold is set to more than the > block size of the wal log, then the FPI is not compressed, and if so, it > might make sense to have a maximum value of this parameter that does not > exceed the block size of the wal log?
Oops, looks like I missed your question. Sorry for so long delay. User might want to compress only megabyte+ records, there's nothing wrong with it. WAL record itself is capped by 1Gb (XLogRecordMaxSize), I do not see a reason to restrict wal_compression_threshold by lower value. PFA rebased version. Best regards, Andrey Borodin.
v4-0001-Compress-big-WAL-records.patch
Description: Binary data