Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id C95D29FA0C0 for ; Thu, 25 Jan 2007 15:17:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 68797-07 for ; Thu, 25 Jan 2007 15:17:00 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from web55413.mail.re4.yahoo.com (web55413.mail.re4.yahoo.com [206.190.58.207]) by postgresql.org (Postfix) with SMTP id AF5029FB4C8 for ; Thu, 25 Jan 2007 15:17:01 -0400 (AST) Received: (qmail 80923 invoked by uid 60001); 25 Jan 2007 19:17:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=DDWGylx5BHB4sNd13t/uLEowDyZdy/XsQYkL6bVCCBN0EsDppbjRPf19UiFUZLzWOBh3emICd8PvGQhRWsHbttg+1lx2frd8Izzf47Z5omAoJ0TVYwOiJlRJ3PtZCpmP7+jVc4440xzjiwQkDTdvofJTF2a+TLud1B1SA3+fJrM=; X-YMail-OSG: leTS5kcVM1lDSOfbBEJaKtvcnv8rV8bhhnnAHHjhQVFVFLGzbCraNw8fbvaQANqxHhJHQ0BKIMw0G7lkRfgU7Qpp10Ff3ga.y.uBDcrDwiC2m8aRdk1BK5IsshCCbkFHBVUcYdFgaIwUQgDAH.zDPDnksQwukKS6Yhag4C237PmvtLBaf7iew1GYLJR. Received: from [66.170.255.252] by web55413.mail.re4.yahoo.com via HTTP; Thu, 25 Jan 2007 11:17:00 PST X-Mailer: YahooMailRC/368.3 YahooMailWebService/0.6.132.7 Date: Thu, 25 Jan 2007 11:17:00 -0800 (PST) From: Shelby Cain Subject: Re: Basic connection problem To: "Paul B. Anderson" , pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <720790.80569.qm@web55413.mail.re4.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/65 X-Sequence-Number: 8604 I don't claim to be any expert using ODBC under Unix but It'd probably be h= elpful if you post the relevant section from your odbc*.ini files...=0A=0Ah= ttp://www.unixodbc.org/odbcinst.html shows an example like so:=0A=0A[Postgr= eSQL]=0ADescription =3D Test to Postgres=0ADriver =3D = PostgreSQL=0ATrace =3D Yes=0ATraceFile =3D sql.log= =0ADatabase =3D nick=0AServername =3D localhost=0AUserN= ame =3D=0APassword =3D=0APort =3D 5432= =0AProtocol =3D 6.4=0AReadOnly =3D No=0ARowVersioning= =3D No=0AShowSystemTables =3D No=0AShowOidColumn =3D No=0AF= akeOidIndex =3D No=0AConnSettings =3D=0A=0AAre you sure you h= ave Servername specified correctly? The error message you are receiving le= ads me to believe "Port=3D5432" is somehow being confused for the database = host server name.=0A=0ARegards,=0A=0AShelby Cain=0A=0A----- Original Messag= e ----=0AFrom: Paul B. Anderson =0ATo: pgsql-odbc= @postgresql.org=0ASent: Thursday, January 25, 2007 11:23:07 AM=0ASubject: [= ODBC] Basic connection problem=0A=0AI'm just trying to get going with an OD= BC interface to Postgresql 8.1.5 =0Aon RHEL 3.0. I'm using the database wi= thout problems via psql, ecpg, =0Aand JDBC.=0A=0AI've hit the same problem = using both iODBC and unixODBC driver =0Amanagers. It get the following whe= n I try to connect to the database:=0A=0A[08001][unixODBC]could not transla= te host name "port=3D5432" to address: =0AName or service not known=0A=0A[I= SQL]ERROR: Could not SQLConnect=0A=0AI've experimented with my ~/.odbc.ini = file with and without Port =3D 5432 =0Abut can't seem to figure how port=3D= 5432 is even getting into the connect =0Astring.=0A=0AI've got psqlodbc 08.= 01.0200. I had to make a couple of small coding =0Achanges to build it for= iODBC but unixODBC worked fine with psqlodbc =0Acode as downloaded.=0A=0A= I have unicode support turned on in the driver. My database uses UTF8.=0A= =0ASurely this must be a common problem. What am I doing wrong?=0A=0APaul= =0A=0A=0A---------------------------(end of broadcast)---------------------= ------=0ATIP 2: Don't 'kill -9' the postmaster=0A=0A=0A=0A=0A=0A =0A_______= ___________________________________________________________________________= __=0A8:00? 8:25? 8:40? Find a flick in no time =0Awith the Yahoo! Search mo= vie showtime shortcut.=0Ahttp://tools.search.yahoo.com/shortcuts/#news