what is procedure for connecting to Postgres through JDBC
843854Sep 15 2003 — edited Sep 15 2003I am going to develop an application for which I have to connect to postgres on my linux server through a java program (it is on local machine in windows environment). I have configured the postgres for access from any other network computer by making the tcp_ip socket true and also adding the line for the ip connection in the pg_hba.conf file. Now the server is ready to accept connections from any other network computer. I do not know that how can I connect to the server? I have two ways in my mind. One is that I will have to include postgres in odbc and then I use jdbc-odbc bridge to connect to odbc while odbc has already made connection with postgres. The other is that I directly connect to postgres by using appropiate driver. Tell me which method is used practically and what drivers will I need to connect to the server.