From: Paul B. Anderson <paul.a@pnlassociates.com>
To: pgsql-odbc@postgresql.org
Subject: Basic connection problem
Date: Thu, 25 Jan 2007 12:23:07 -0500
Message-ID: <45B8E77B.80305@pnlassociates.com> (raw)
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: paul.a@pnlassociates.com
Subject: Re: Basic connection problem
In-Reply-To: <45B8E77B.80305@pnlassociates.com>
References: <45B8E77B.80305@pnlassociates.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