From: Philip Yarra <philip@utiba.com>
To: ElayaRaja S <elayaraja.s@gmail.com>
To: pgsql-interfaces@postgresql.org
Subject: Re: postgresql-7.4.5
Date: Tue, 7 Dec 2004 16:59:22 +1100
Message-ID: <200412071659.22724.philip@utiba.com> (raw)
In-Reply-To: <79f1097e04120522003bb0fc4b@mail.gmail.com>
References: <79f1097e04120522003bb0fc4b@mail.gmail.com>
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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: philip@utiba.com, elayaraja.s@gmail.com
Subject: Re: postgresql-7.4.5
In-Reply-To: <200412071659.22724.philip@utiba.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox