Re: libpq compression

Поиск
Список
Период
Сортировка
От Konstantin Knizhnik
Тема Re: libpq compression
Дата
Msg-id 373a44ea-48bb-4781-0df0-3afec3245260@postgrespro.ru
обсуждение исходный текст
Ответ на Re: libpq compression  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Список 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


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: how to replicate test results in cf-bot on travis
Следующее
От: Matthias van de Meent
Дата:
Сообщение: Re: libpq compression