pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Migowski <dmigowski@ikoffice.de>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Fastest way to check aliveness of connection
Date: Wed, 27 Feb 2008 08:57:13 +0100
Message-ID: <47C517D9.9020405@ikoffice.de> (raw)
In-Reply-To: <47C490A8.1090708@opencloud.com>
References: <47C415F8.2020406@ikoffice.de>
	<47C490A8.1090708@opencloud.com>

Hello Oliver,

Oliver Jowett schrieb:
> Running an empty query ("") is probably the simplest way.
>
> In theory you could do something slightly faster at the protocol level 
> (just send Sync and wait for ReadyForQuery) but there's no interface 
> currently exposed to do that and I doubt that it will be much faster 
> than an empty query anyway.
Yes, I investigated that, but since the normal query procedure also just 
sends one package, the gain for just sending the sync does not really 
matter. Of course, your idea with the empty query is great. Thanks alot.

With best regards,
Daniel Migowski




view thread (3+ messages)

Message-ID: <47C517D9.9020405@ikoffice.de>
Permalink:  ../47C517D9.9020405@ikoffice.de/
Also on:    postgresql.org/message-id/47C517D9.9020405@ikoffice.de

 · 

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: dmigowski@ikoffice.de, oliver@opencloud.com
  Subject: Re: Fastest way to check aliveness of connection
  In-Reply-To: <47C517D9.9020405@ikoffice.de>
  References: <47C415F8.2020406@ikoffice.de> <47C490A8.1090708@opencloud.com> <47C517D9.9020405@ikoffice.de>

* 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