Re: backend and getConnection

From: "Dave Cramer" <Dave(at)micro-automation(dot)net>
To: "Didier Bretin" <dbr(at)informactis(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: backend and getConnection
Date: 2001-05-15 22:03:58
Message-ID: 02e201c0dd8a$f1c32fa0$230470d1@INSPIRON
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Didier,

Yes, this is required. By definition getting a connection entails opening
one. I suppose the opening of the connection could be deferred until
actually used, however there may be situations where the connection may not
be legally opened; as such it is better to know ahead of actually trying to
use it.

Just out of curiosity what behaviour did you expect?

--dc--
----- Original Message -----
From: "Didier Bretin" <dbr(at)informactis(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Sent: Tuesday, May 15, 2001 11:11 AM
Subject: [JDBC] backend and getConnection

> Hello,
>
> I try to tune my postgresql server and I was asking me something: each
time
> I do a DriverManager.getConnection (), I notice that a backend
> is opened. Do you confirm that the backend opening is a necessary (logical
?)
> consequence of the DriverManger statement ?
>
> Regards.
> --
> .------------------------------------------------.
> .^. | Didier Bretin, France | dbr(at)informactis(dot)com |
> /V\ |-----------------------| www.informactis.com |
> // \\ | `------------------------|
> /( )\ | Visit: http://www.fnh.org/ |
> ^^-^^ `------------------------------------------------'
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl
>
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bruce Momjian 2001-05-15 23:46:44 Re: [PATCHES] DatabaseMetaData.getIndexInfo() added
Previous Message B.N.V. Raman 2001-05-15 17:34:46 RE: access from java does not work in an applet!