Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 448AB9FB4F5 for ; Fri, 9 Feb 2007 10:33:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 34802-05-5 for ; Fri, 9 Feb 2007 10:32:59 -0400 (AST) X-Greylist: delayed 00:09:10.490693 by SQLgrey-1.7.4 Received: from mail.gtech.kiev.ua (mail.gtech.kiev.ua [91.90.17.51]) by postgresql.org (Postfix) with ESMTP id 846F09FB60F for ; Fri, 9 Feb 2007 09:03:27 -0400 (AST) Received: from localhost ([127.0.0.1]) by mail.gtech.kiev.ua (using TLSv1/SSLv3 with cipher AES256-SHA (256 bits)) for pgsql-jdbc@postgresql.org; Fri, 9 Feb 2007 15:54:24 +0200 Message-ID: <45CC6EF3.1090600@gtech-ua.com> Date: Fri, 09 Feb 2007 14:54:11 +0200 From: Vit Timchishin User-Agent: Thunderbird 1.5.0.9 (X11/20060911) MIME-Version: 1.0 CC: pgsql-jdbc@postgresql.org Subject: Re: use connection pooling References: <45CB5D29.4050609@burntmail.com> <45CB6A63.6020403@hogranch.com> <45CBC58B.9010401@burntmail.com> In-Reply-To: <45CBC58B.9010401@burntmail.com> Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/41 X-Sequence-Number: 16597 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).