pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Thomas <paul@tmsl.demon.co.uk>
To: Assad Jarrahian <jarraa@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: an efficient way of checking if the connection to a db is actually open
Date: Thu, 15 Dec 2005 21:38:11 +0000
Message-ID: <20051215213811.E5278@bacon> (raw)
In-Reply-To: <4bd3e1480512151247u50479082vd08b9a1563d54604@mail.gmail.com>
References: <4bd3e1480512151247u50479082vd08b9a1563d54604@mail.gmail.com>


On 15/12/2005 20:47 Assad Jarrahian wrote:
> The documentation says, the only real way is to actually call an sql
> statement on it. That seems inefficient. Is there any other way that is
> recommended?

Something like SELECT now() would be quick as doesn't involve any database 
access.

-- 
Paul Thomas
+------------------------------+-------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for Business           |
| Computer Consultants         | http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+-------------------------------------------+



view thread (8+ messages)  latest in thread

Message-ID: <20051215213811.E5278@bacon>
Permalink:  ../20051215213811.E5278@bacon/
Also on:    postgresql.org/message-id/20051215213811.E5278@bacon

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: paul@tmsl.demon.co.uk, jarraa@gmail.com
  Subject: Re: an efficient way of checking if the connection to a db is actually open
  In-Reply-To: <20051215213811.E5278@bacon>
  References: <4bd3e1480512151247u50479082vd08b9a1563d54604@mail.gmail.com> <20051215213811.E5278@bacon>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox