From: | Daniil Zakhlystov <usernamedt(at)yandex-team(dot)ru> |
---|---|
To: | Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)ru> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andrey M(dot) Borodin <x4mmm(at)yandex-team(dot)ru>, "o(dot)bartunov(at)postgrespro(dot)ru" <o(dot)bartunov(at)postgrespro(dot)ru> |
Subject: | Re: libpq compression |
Date: | 2020-11-02 16:32:30 |
Message-ID: | 2751271604329658@mail.yandex-team.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
<div><div>Hi,</div><div> </div><div>Currently, zpq_stream contains a check only for the tx buffered data - zpq_buffered().</div><div> </div><div>I think that there should be the same functionality for rx buffered data. For example, the zpq_buffered_rx().</div><div> </div><div>zpq_buffered_rx() returns a value greater than zero if there is any data that was fetched by rx_func() but haven't been decompressed yet, in any other case zpq_buffered_rx() returns zero.</div><div> </div><div>In this case, I think that we may also rename the existing zpq_buffered() to zpq_buffered_tx() for clarity.<br /><br />--<br />Daniil Zakhlystov</div></div>
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/html | 651 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Konstantin Knizhnik | 2020-11-02 16:36:16 | Re: libpq compression |
Previous Message | Dave Cramer | 2020-11-02 16:18:03 | Re: how to replicate test results in cf-bot on travis |