Re: JDBC in PostgreSql for Linux

From: Erik Price <eprice(at)ptc(dot)com>
To: Kallol Nandi <kallol(dot)nandi(at)indussoft(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: JDBC in PostgreSql for Linux
Date: 2003-06-20 19:10:01
Message-ID: 3EF35C09.1050405@ptc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kallol Nandi wrote:
> Hi,
>
> This is the code that I am using for native JDBC Driver to connect to
> PostgreSql in Linux.
> BTW the version of Postgres is 7.2.2 and the jar file is jdbc7.1-1.2.jar.

[...]

> String server ="10.100.102.31";
> String port ="5432";
> String database="notes";
> String url="jdbc:postgresql@"+server+":"+port+":"+database;

I don't know a lot about JDBC but I am using this URL with success:

jdbc:postgresql://localhost:5432/DATABASE_NAME_HERE

although I am using Sun 1.4 SDK.

Erik

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mike Castle 2003-06-20 20:28:40 Re: Sort memory not being released
Previous Message Jeff Eckermann 2003-06-20 18:57:38 Re: splitting a table?