Skip site navigation (1) Skip section navigation (2)

Re: postgresql-7.4.5

From: Philip Yarra <philip(at)utiba(dot)com>
To: ElayaRaja S <elayaraja(dot)s(at)gmail(dot)com>,pgsql-interfaces(at)postgresql(dot)org
Subject: Re: postgresql-7.4.5
Date: 2004-12-07 05:59:22
Message-ID: 200412071659.22724.philip@utiba.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfaces
Hi, I believe any of those jar files should be okay to connect to 7.4.5. It 
looks to me like those different jar files implement different versions of 
JDBC, but all are intended for postgresql 7.4.x. There's actually an 
explanation at http://jdbc.postgresql.org/download.html

If you are having trouble connecting, make sure the postgresql server is 
listening on a TCP socket (by default 5432) and that you can actually connect 
to it (use telnet or netcat to check this). By default postgresql will only 
listen on a Unix domain socket. You can change this in your postgresql.conf 
file.

If your java code runs on a different machine than the one that the database 
server runs on, check that the server's pg_hba.conf file will allow 
connections from the machine where the java code runs. You can verify this by 
using `psql -h <remote_machine> -l` (that's a lower-case L) - if psql can't 
connect, neither can JDBC.

Hope this helps, if not, please post more details about what you did, and what 
actually happened (or did not happen). Source code may help.

Regards, Philip.

PS: INTERFACES is the best place to ask this sort of question

On Mon, 6 Dec 2004 05:00 pm, ElayaRaja S wrote:
> Hi,
>     I am using postgresql-7.4.5. I nee to use the jdbc connection So i
> downloaded 4 versions of driver( pg74.215.jdbc1.jar,
> pg74.215.jdbc2.jar, pg74.215.jdbc2ee.jar, pg74.215.jdbc3.jar). I am
> uanble to connect it. Please let me know which version of driver i
> have to use for postgresql-7.4.5 ?
> 
> -- 
> Warm Regards,
> S.ElayaRaja
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
> 


In response to

pgsql-hackers by date

Next:From: Sibtay AbbasDate: 2004-12-07 06:33:45
Subject: how can i add my own procedural language?
Previous:From: Tom LaneDate: 2004-12-07 05:19:31
Subject: Re: Call for port reports

pgsql-interfaces by date

Next:From: Jens LechtenbörgerDate: 2004-12-09 15:43:03
Subject: Lost updates vs resumable connections/transactions
Previous:From: Michael FuhrDate: 2004-12-07 05:35:11
Subject: Re: date type!

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group