non blcoking behaviour - Mailing list pgsql-bugs

From Erik Hofman
Subject non blcoking behaviour
Date
Msg-id 3A966C1D.86415240@ehofman.com
Whole thread Raw
Responses Re: non blcoking behaviour  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name               : Erik Hofman
Your email address      : erik@ehofman.com


System Configuration
---------------------
  Architecture (example: Intel Pentium)         : SGI O2 / Mips RM5200

  Operating System (example: Linux 2.0.26 ELF)  :Irix 6.5.9

  PostgreSQL version (example: PostgreSQL-7.0):   PostgreSQL-7.0.3

  Compiler used (example:  gcc 2.8.0)           : MipsPro C 7.3


Please enter a FULL description of your problem:
------------------------------------------------

I'm programming PostgreSQL using the non blocking function right now,
but i had a real struggle with it :(

The PQstatus returns CONNECTION_MADE, but PQsendQuery only checks for
CONNECTION_OK.
So PQsendQuery doesn't send the query, while i think that after
CONNECTION_MADE the query could be sent also.



Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------





If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------

Probably adding CONNECTION_MADE to PQsendQuery

Erik

pgsql-bugs by date:

Previous
From: Rainer Mager
Date:
Subject: JDBC bug in 7.1b4
Next
From: Tom Lane
Date:
Subject: Re: Date calculation produces wrong output with 7.02