From: Vit Timchishin <tivv@gtech-ua.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: use connection pooling
Date: Fri, 09 Feb 2007 14:54:11 +0200
Message-ID: <45CC6EF3.1090600@gtech-ua.com> (raw)
In-Reply-To: <45CBC58B.9010401@burntmail.com>
References: <de1942f0612212258o5861e88cg1627a1bd340d218@mail.gmail.com>
<de1942f0702080145t42ade2c4qee0f2fb6cd203a8a@mail.gmail.com>
<45CB5D29.4050609@burntmail.com>
<45CB6A63.6020403@hogranch.com>
<45CBC58B.9010401@burntmail.com>
Guy Rouillier wrote:
> John R Pierce wrote:
>> Guy Rouillier wrote:
>>> janaka priyadarshana wrote:
>>>> hi all
>>>>
>>>>
>>>> my database server is running on one machine and the application
>>>> is running on another machine(simple java application use to access
>>>> the database).
>>>>
>>>> so i want to know, what is the protocol that use to communicate
>>>> between those two applications...?
>>>
>>> JDBC.
>>>
>>
>> not exactly. JDBC is the API your app uses to access the
>> database. the JDBC class libraries for postgres on the client
>> system will use postgres's native protocol to talk to the PG Server
>> (default of 5432/tcp)
>
> Well, with any network communication, there are multiple layers of
> protocols involved. You took it one layer below JDBC, but we could
> keep on going down to the physical layer link protocol. Since the
> O.P. was asking on a JDBC mailing list, I assumed he was interested in
> that layer.
>
Note the difference between the Protocol and the API.
Correct answer, IMHO, would be that PostgreSQL JDBC driver is Type 4 and
it will use same protocol as native client. To be noted, that is does
not contain Type 2 driver and so can communicate via TCP/IP only, even
when connecting to local host. Also there is an option to use SSL
secured connection, but I can't tell any more (how to enable this)
because've never used this mode. There may be some Java-specific SSL
problems (like specifying keyring).
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: tivv@gtech-ua.com
Subject: Re: use connection pooling
In-Reply-To: <45CC6EF3.1090600@gtech-ua.com>
References: <de1942f0612212258o5861e88cg1627a1bd340d218@mail.gmail.com> <de1942f0702080145t42ade2c4qee0f2fb6cd203a8a@mail.gmail.com> <45CB5D29.4050609@burntmail.com> <45CB6A63.6020403@hogranch.com> <45CBC58B.9010401@burntmail.com> <45CC6EF3.1090600@gtech-ua.com>
* 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