Re: Is there a way to check if a db connection handle is still valid?

From: Thomas Quinot <thomas(at)cuivre(dot)fr(dot)eu(dot)org>
To: Antai Ning <aning(at)jetnet(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is there a way to check if a db connection handle is still valid?
Date: 2002-05-30 20:40:36
Message-ID: 20020530224036.A72216@melusine.cuivre.fr.eu.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You could probably try a query like 'SELECT 1;' and see if it succeeds.

Thomas.

--
Thomas(dot)Quinot(at)Cuivre(dot)FR(dot)EU(dot)ORG

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurette Cisneros 2002-05-30 20:46:08 Re: timestamp
Previous Message Antai Ning 2002-05-30 20:28:04 Is there a way to check if a db connection handle is still valid?