Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2FA2F9FB60A for ; Thu, 25 Jan 2007 13:53:01 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 44959-01 for ; Thu, 25 Jan 2007 13:52:54 -0400 (AST) X-Greylist: delayed 00:29:27.758246 by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id EBE589FB594 for ; Thu, 25 Jan 2007 13:52:53 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail709.megamailservers.com (mail709.megamailservers.com [69.49.98.19]) by svr4.postgresql.org (Postfix) with ESMTP id 62FB35AF9F9 for ; Thu, 25 Jan 2007 17:23:14 +0000 (GMT) X-Authenticated-User: paul.a.pnlassociates.com Received: from [69.3.2.106] (h-69-3-2-106.mclnva23.covad.net [69.3.2.106]) (authenticated bits=0) by mail709.megamailservers.com (8.13.6.20060614/8.13.1) with ESMTP id l0PHN7DC013822 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 25 Jan 2007 12:23:11 -0500 Message-ID: <45B8E77B.80305@pnlassociates.com> Date: Thu, 25 Jan 2007 12:23:07 -0500 From: "Paul B. Anderson" User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Basic connection problem Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.074 tagged_above=0 required=5 tests=AWL, BAYES_50 X-Spam-Level: X-Archive-Number: 200701/64 X-Sequence-Number: 8603 I'm just trying to get going with an ODBC interface to Postgresql 8.1.5 on RHEL 3.0. I'm using the database without problems via psql, ecpg, and JDBC. I've hit the same problem using both iODBC and unixODBC driver managers. It get the following when I try to connect to the database: [08001][unixODBC]could not translate host name "port=5432" to address: Name or service not known [ISQL]ERROR: Could not SQLConnect I've experimented with my ~/.odbc.ini file with and without Port = 5432 but can't seem to figure how port=5432 is even getting into the connect string. I've got psqlodbc 08.01.0200. I had to make a couple of small coding changes to build it for iODBC but unixODBC worked fine with psqlodbc code as downloaded. I have unicode support turned on in the driver. My database uses UTF8. Surely this must be a common problem. What am I doing wrong? Paul