Re: libpq compression

From: Daniil Zakhlystov <usernamedt(at)yandex-team(dot)ru>
To: Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)ru>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andres Freund <andres(at)anarazel(dot)de>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
Subject: Re: libpq compression
Date: 2020-11-03 15:08:55
Message-ID: 359061604415173@mail.yandex-team.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

<div>Hi,<br /><br />Looks like I found an issue: there can be a situation when libpq frontend hangs after zpq_read(). This may happen when the socket is not read ready and we can't perform another read because we wait on pqWait() but we actually have some buffered rx data.<br /><br />I think we should add a check if there is any buffered rx data before calling pqWait() to avoid such hangs.<br /><br />--<br />Daniil Zakhlystov</div>

Attachment Content-Type Size
unknown_filename text/html 439 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2020-11-03 15:10:09 Re: language cleanups in code and docs
Previous Message Peter Eisentraut 2020-11-03 14:53:10 Re: Dumping/restoring fails on inherited generated column