Re: PQstatus() detect change in connection...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matthew Hagerty <mhagerty(at)voyager(dot)net>
Cc: "Mark Pritchard" <mark(at)tangent(dot)net(dot)au>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: PQstatus() detect change in connection...
Date: 2001-10-19 00:51:07
Message-ID: 8864.1003452667@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Matthew Hagerty <mhagerty(at)voyager(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-10-19 01:12:10 Re: To Postgres Devs : Wouldn't changing the select limit
Previous Message Doug McNaught 2001-10-19 00:06:11 Re: VACUUM vs VACUUM ANALYZE