From: | Vasily Kulikov <segoon(at)yandex-team(dot)ru> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: PQconsumeinput() may close the fd |
Date: | 2022-11-01 08:09:44 |
Message-ID: | 255131667290089@mail.yandex-team.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
<div>21.10.2022, 17:40, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>:</div><blockquote><p>Laurenz Albe <<a href="mailto:laurenz(dot)albe(at)cybertec(dot)at" rel="noopener noreferrer">laurenz(dot)albe(at)cybertec(dot)at</a>> writes:</p><blockquote> On Fri, 2022-10-21 at 07:27 +0300, Vasily Kulikov wrote:<blockquote> The problem is that sometimes PQconsumeInput() may close the connection</blockquote></blockquote><p>What I'd suggest doing is checking for PQstatus(conn) == CONNECTION_BAD,<br />or else directly rechecking PQsocket() each time, rather than assuming<br />the socket is still there.</p></blockquote><div>I've chosen this one. Thanks for the help!</div>
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/html | 649 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | jian he | 2022-11-01 09:31:52 | Re: Delete a table automatic? |
Previous Message | Ron | 2022-11-01 07:54:26 | Re: Autovacuum on Partitioned Tables |