Thread: postgresql-7.4.5

postgresql-7.4.5

From
ElayaRaja S
Date:
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


Re: postgresql-7.4.5

From
Philip Yarra
Date:
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
> 



Re: postgresql-7.4.5

From
Dave Cramer
Date:
That driver should work, however you might have something else 
misconfigured.
What error are you getting ?

You should post this to the jdbc list

Dave

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 ?
>
>  
>

-- 
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561