Re: Libpq optimization - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Libpq optimization
Date
Msg-id 7723.1130348269@sss.pgh.pa.us
Whole thread Raw
In response to Libpq optimization  ("Alon Goldshuv" <agoldshuv@greenplum.com>)
Responses Re: Libpq optimization
List pgsql-hackers
"Alon Goldshuv" <agoldshuv@greenplum.com> writes:
> As the code comment suggests, it is extremely important to consume incoming
> messages from the server to prevent deadlock. However we should only worry
> about it before sending data out.

And, unfortunately, you've broken it.  The pqFlush call visible in that
routine is not the only place that may try to send data (see also
pqPutMsgEnd).
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: IMMUTABLE bug ?
Next
From: Robert Treat
Date:
Subject: pidfile location missing after restarting crashed server in 8.1