Re: non blcoking behaviour

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Erik Hofman <erik(at)ehofman(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: non blcoking behaviour
Date: 2001-02-23 20:02:04
Message-ID: 29289.982958524@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Erik Hofman <erik(at)ehofman(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2001-02-23 20:56:40 Re: Problem using Postgres 7.0.3 on SCO Unixware 7.1.1
Previous Message Tom Lane 2001-02-23 18:36:19 Re: Date calculation produces wrong output with 7.02