Re: postgresql-7.4.5
От | Philip Yarra |
---|---|
Тема | Re: postgresql-7.4.5 |
Дата | |
Msg-id | 200412071659.22724.philip@utiba.com обсуждение исходный текст |
Ответ на | postgresql-7.4.5 (ElayaRaja S <elayaraja.s@gmail.com>) |
Список | pgsql-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 >
В списке pgsql-interfaces по дате отправления: