I installed postgres 7.1 with --enable-odbc. I then installed
authorBruce Momjian <bruce@momjian.us>
Tue, 12 Jun 2001 15:14:47 +0000 (15:14 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 12 Jun 2001 15:14:47 +0000 (15:14 +0000)
commitbdcfadaae3dd19798c4bae41cc7a4338960a2cc7
tree9c742e11f96b70b3287356934bd2cfd590d1cdf8
parent81a90e0f5e5f9b857bcf838f3a94a9b7786e0694
I installed postgres 7.1 with --enable-odbc.  I then installed
tclodbc (http://sourceforge.net/projects/tclodbc) and libiodbc-2.50.3
(http://www.iodbc.org/dist/libiodbc-2.50.3.tar.gz).  I could not
get either to work... postgres would not find the global odbcinst.ini
file.  I traced this to src/interfaces/odbc/gpps.c -- here are the
many things I think are wrong:

Run tclodbc and do a ``database db <DSNname>'' where ``DSNname'' is
one of the DSN's in /usr/local/etc/odbcinst.ini (or wherever the
global ini file is installed.)  The result is always the error
message that ``one of server,port,database,etc. are missing''.

Run libiodbc-2.50.3/samples/odbctest <DSNname>.  The command fails
to connect to the database and just exits.

Dave Bodenstab
gpps.c