Subject: Re: libpq compression (part 2)

From: Andrey Borodin <[email-masked]>
Date: Mon, 03 Jan 2022 16:16:55 +0500

> Maybe you should reset the streams between each compression message (even if
> it's using the same compression algorithm). This might allow better
> compression.

AFAIK on the contrary - longer data sequence usually compresses better. The codec can use knowledge about prior data to better compress current bytes.

Best regards, Andrey Borodin.