Re: PQstatus() detect change in connection... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PQstatus() detect change in connection...
Date
Msg-id 8864.1003452667@sss.pgh.pa.us
Whole thread Raw
In response to Re: PQstatus() detect change in connection...  (Matthew Hagerty <mhagerty@voyager.net>)
List pgsql-hackers
Matthew Hagerty <mhagerty@voyager.net> writes:
> but I also want to check the connection 
> *before* submitting a query...

This strikes me as utterly pointless.  You'll need to be able to recover
from query failure anyway, so what's the value of testing beforehand?
Send the query and see if it works or not.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gavin Sherry
Date:
Subject: Re: Create or replace function doesn't work so well
Next
From: Hiroshi Inoue
Date:
Subject: Re: ODBC SQLBindParameter and UNICODE strings