Re: JDBC in PostgreSql for Linux - Mailing list pgsql-general

From Erik Price
Subject Re: JDBC in PostgreSql for Linux
Date
Msg-id 3EF35C09.1050405@ptc.com
Whole thread Raw
In response to Re: JDBC in PostgreSql for Linux  ("Kallol Nandi" <kallol.nandi@indussoft.com>)
List 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


pgsql-general by date:

Previous
From: Jeff Eckermann
Date:
Subject: Re: splitting a table?
Next
From: dalgoda@ix.netcom.com (Mike Castle)
Date:
Subject: Re: Sort memory not being released