Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: Libpq optimization - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Libpq optimization
Date
Msg-id [email protected]
Whole thread Raw
In response to Libpq optimization  ("Alon Goldshuv" <[email protected]>)
Responses Re: Libpq optimization
List pgsql-hackers
"Alon Goldshuv" <[email protected]> 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