Re: libpq compression - Mailing list pgsql-hackers

From Konstantin Knizhnik
Subject Re: libpq compression
Date
Msg-id 373a44ea-48bb-4781-0df0-3afec3245260@postgrespro.ru
Whole thread Raw
In response to Re: libpq compression  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List pgsql-hackers

On 02.11.2020 19:32, Daniil Zakhlystov wrote:
> Hi,
> Currently, zpq_stream contains a check only for the tx buffered data - 
> zpq_buffered().
> I think that there should be the same functionality for rx buffered 
> data. For example, the zpq_buffered_rx().
> 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.
> In this case, I think that we may also rename the existing 
> zpq_buffered() to zpq_buffered_tx() for clarity.
>
> --
> Daniil Zakhlystov

Please try the attached patch v24 which adds zpq_buffered_rx and 
zpq_buffered_tx functions.


-- 
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


Attachment

pgsql-hackers by date:

Previous
From: Dave Cramer
Date:
Subject: Re: how to replicate test results in cf-bot on travis
Next
From: Matthias van de Meent
Date:
Subject: Re: libpq compression