X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3E0C93A6086 for ; Tue, 7 Dec 2004 05:59:47 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44020-04 for ; Tue, 7 Dec 2004 05:59:37 +0000 (GMT) Received: from cpc-gw3.cpc.net.au (174.034.dsl.mel.iprimus.net.au [210.50.235.174]) by svr1.postgresql.org (Postfix) with ESMTP id 10C6A3A6104 for ; Tue, 7 Dec 2004 05:59:34 +0000 (GMT) Received: from utiba.com (cpc-gw2.cpc.net.au [150.101.217.154]) by Utiba Mail Gateway (3.3.3) with ESMTP id iB75xVv29860; Tue, 7 Dec 2004 16:59:31 +1100 Received: from pc38 (pc38.cpc.net.au [192.168.0.38]) by Utiba Mail Thingy (0.0.2) with ESMTP id iB75xNn14933; Tue, 7 Dec 2004 16:59:24 +1100 From: Philip Yarra Organization: Utiba Pty Ltd To: ElayaRaja S , pgsql-interfaces@postgresql.org Subject: Re: postgresql-7.4.5 Date: Tue, 7 Dec 2004 16:59:22 +1100 User-Agent: KMail/1.5 References: <79f1097e04120522003bb0fc4b@mail.gmail.com> In-Reply-To: <79f1097e04120522003bb0fc4b@mail.gmail.com> X-contributes-to-entropy: true MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200412071659.22724.philip@utiba.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.038 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/17 X-Sequence-Number: 5188 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 -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 >