Re: non blcoking behaviour - Mailing list pgsql-bugs

From Tom Lane
Subject Re: non blcoking behaviour
Date
Msg-id 29289.982958524@sss.pgh.pa.us
Whole thread Raw
In response to non blcoking behaviour  (Erik Hofman <erik@ehofman.com>)
List pgsql-bugs
Erik Hofman <erik@ehofman.com> writes:
> Probably adding CONNECTION_MADE to PQsendQuery

The code is not broken, but it would be if we changed that.

CONNECTION_MADE is an intermediate state in the nonblocking connection
procedure; it does not entitle you to send a query.  You really
shouldn't be looking at PQstatus anyway, IMHO, until you've gotten a
PGRES_POLLING_OK result from PQconnectPoll.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Stu Coates
Date:
Subject: Re: pg_dump failing on LinuxPPC
Next
From: Peter Eisentraut
Date:
Subject: Re: Problem using Postgres 7.0.3 on SCO Unixware 7.1.1