X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 87D77D939F for ; Fri, 23 Sep 2005 17:46:50 -0300 (ADT) 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 72127-07 for ; Fri, 23 Sep 2005 20:46:44 +0000 (GMT) Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.91]) by svr1.postgresql.org (Postfix) with ESMTP id 4CE81D937D for ; Fri, 23 Sep 2005 17:46:44 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Fri, 23 Sep 2005 15:46:43 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.4 Date: Fri, 23 Sep 2005 15:46:25 -0500 From: "Kevin Grittner" To: , Subject: Re: Connecting to postgreSQL Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 required=5 tests=[AWL=0.004] X-Spam-Level: X-Archive-Number: 200509/105 X-Sequence-Number: 13890 Greetings Peter, =20 Since I haven't noticed any responses here, I'll take a shot at it. =20 Start with this: =20 http://jdbc.postgresql.org/documentation/80/index.html =20 A lot of your questions should be answered in sections 1 through 3. =20 You do not need to unzip jar files to use the contents -- put the jar file(s) on the classpath, rather than the directory in which they reside. =20 I'm not sure how you would use ODBC directly in a Java app, so your question comes down to using the JDBC driver directly, or using the JdbcOdbc bridge. Your performance and reliability are almost certainly going to be better with the JDBC driver. It allows your Java application to talk to the database directly through a TCP socket. =20 You will need to configure your postgres back end to allow TCP connections from the appropriate IP addresses. The default is really tight security, which disallows everything. You will need to speicify what connections are allowed in the pg_hba.conf file in your data directory (assuming a standard installation). Also, in your postgresql.conf file you will have to mofify the listen_addresses line. =20 See this for more info: =20 http://www.postgresql.org/docs/8.0/interactive/index.html =20 I hope this is helpful. =20 -Kevin =20 =20 >>> "Peter Cook" 09/22/05 7:27 PM >>> I have a Java Application runnibng on Windows 2000. Initially it accessed an Access database, and now that I have installed=20 postgreSQL, I want to configure it to access postgreSQL. (1) Is there a single document that can take me through the steps, or = can=20 someone give me a simple checklist of what I need to do. (2) I was using JdbcOdbc to use the Access database, is it possible to = use=20 JdbcOdbc to access postgreSQL (3) what are the pros and cons of using JDBC, ODBC and JdbcOdbc I have a data/jdbc directory with three jar files. I expect I need to = unpack=20 one or all three. I have included this directory in my CLASSPATH. I Postmaster appears to be running after system startup because I don't = need=20 to do anything to fire up pgAdmin. I read where the -i flag needs to be set for TCP/IP use. How is the=20 Postmaster started? There must be a batch file that starts it. I will need to amend the parameters. Also, I = see=20 in one document that the -i flag is deprecated and the -h flag is prefered. I hope you can clarify this jumble of discordant information. I would appreciate your help. Your sincerely Peter Cook _________________________________________________________________ SEEK: Over 80,000 jobs across all industries at Australia's #1 job site. = =20 http://ninemsn.seek.com.au?hotmail ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org