Re: libpq compression - Mailing list pgsql-hackers

From Robert Haas
Subject Re: libpq compression
Date
Msg-id CA+TgmobaHKCWzBZK0iD1EUUjpfpy6g_e=h6-xz48ihxeccudaQ@mail.gmail.com
Whole thread Raw
In response to Re: libpq compression  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: libpq compression
List pgsql-hackers
On Tue, Dec 22, 2020 at 2:33 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I'd assume that there's a direct correlation between the compression level
> setting and the window size; but I've not studied the libzstd docs in
> enough detail to know what it is.

But there is a privilege boundary between the sender and the receiver.
What's alleged here is that the sender can do a thing which causes the
receiver to burn through tons of memory. It doesn't help anything to
say, well, the sender ought to use a window size of N or less. What if
they don't?

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Alastair Turner
Date:
Subject: Re: Proposed patch for key managment
Next
From: Tom Lane
Date:
Subject: Re: libpq compression