X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id A00669DCB94 for ; Thu, 15 Dec 2005 18:24:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87231-08 for ; Thu, 15 Dec 2005 18:24:23 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 69C819DC820 for ; Thu, 15 Dec 2005 18:24:19 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jBFMOKIw017553; Thu, 15 Dec 2005 17:24:20 -0500 (EST) To: Kris Jurka cc: Assad Jarrahian , pgsql-jdbc@postgresql.org Subject: Re: an efficient way of checking if the connection to a db In-reply-to: References: <4bd3e1480512151247u50479082vd08b9a1563d54604@mail.gmail.com> Comments: In-reply-to Kris Jurka message dated "Thu, 15 Dec 2005 16:42:14 -0500" Date: Thu, 15 Dec 2005 17:24:20 -0500 Message-ID: <17552.1134685460@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.003 required=5 tests=[AWL=0.003] X-Spam-Score: 0.003 X-Spam-Level: X-Archive-Number: 200512/66 X-Sequence-Number: 14397 Kris Jurka writes: > Getting the official driver to provide this interface would require > demonstrating that the overhead of SELECT 1 is significantly higher than > Sync. It probably is. However, sending an empty query string to the backend to execute ought to be competitive with a bare Sync. libpq supports that; does JDBC? regards, tom lane