X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7515BD1B745 for ; Fri, 18 Jun 2004 11:07:31 -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 44851-04 for ; Fri, 18 Jun 2004 14:07:26 +0000 (GMT) Received: from mtu.net (mtu.net [65.169.135.46]) by svr1.postgresql.org (Postfix) with ESMTP id C0379D1B54D for ; Fri, 18 Jun 2004 11:07:21 -0300 (ADT) Received: from c-66-41-212-50.mn.client2.attbi.com ([66.41.212.50] helo=[192.168.42.101]) by mtu.net with esmtp (Exim 3.35 #1 (Debian)) id 1BbK1d-0002DP-00 for ; Fri, 18 Jun 2004 10:07:25 -0400 Subject: unixODBC drivers for PostgreSQL? From: Jon Schewe To: pgsql-odbc@postgresql.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Pg7tXNAGVP7oHPI6/ZnG" Message-Id: <1087567614.3272.38.camel@workstation.mn.mtu.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 18 Jun 2004 09:06:55 -0500 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.7 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS, RCVD_IN_SORBS_ZOMBIE X-Spam-Level: ** X-Archive-Number: 200406/40 X-Sequence-Number: 4110 --=-Pg7tXNAGVP7oHPI6/ZnG Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I'm trying to get unixODBC and PostgreSQL to talk nice, but can't seem to get it working. I've seen a few posts on the list of people trying to do this as well. Have any of you gotten it to work?=20=20 I've got a SuSE 9.1 distribution of Linux. This contains PostgreSQL 7.4.2, unixODBC 2.2.8 and psqlODBC 07.03.0200. The unixODBC drivers are installed in /usr/lib/unixODBC and the psqlODBC drivers are installed in /usr/lib. I've tried both sets of drivers (as you can see from the config file below) as well as various source compiles. The psqlODBC driver doesn't seem to do much of anything, isql just goes away eating CPU and there are no messages in the postgresql logfile. When I use the unixODBC drivers isql also goes away eating CPU, however I get the following in my postgresql logfile: 2004-06-16 11:10:04 LOG: unexpected EOF within message length word I'm sure I'm authenticating because when I had the authentication setup wrong earlier and would get a message about IDENT failed. So now this seems to be a mismatch in the protocols being used between the ODBC drivers and PostgreSQL. Does anyone have any ideas? Configfile installed with : odbcinst -i -s -n PostgreSQL -f postgreSQL.ini /etc/unixODBC/odbcinst.ini is empty and there is nothing in /tmp/sql.log, it's not even there. --- postgreSQL.ini --- [PostgreSQL] Description =3D Postgres on workstation, accessed locally Driver =3D /usr/lib/unixODBC/libodbcpsql.so.2 #Setup =3D /usr/lib/unixODBC/libodbcpsqlS.so.1 #Driver =3D /usr/lib/psqlodbc.so #Driver =3D /usr/src/packages/SOURCES/psqlodbc-07.03.0200/.libs/psqlodbc.so #Driver =3D /usr/src/packages/SOURCES/unixODBC-2.2.8/Drivers/PostgreSQL/.libs/libodbcps= ql.so #Trace =3D Yes TraceFile =3D /tmp/sql.log Database =3D richards Servername =3D workstation UserName =3D richards Password =3D richards Port =3D 5432 Protocol =3D 7.4.2 ReadOnly =3D 0 #RowVersioning =3D No #ShowSystemTables =3D No #ShowOidColumn =3D No #FakeOidIndex =3D No --- end postgreSQL.ini --- Thanks for any help you can provide. --=20 Jon Schewe | http://mtu.net/~jpschewe GPG signature at http://mtu.net/~jpschewe/gpg.sig.html For I am convinced that neither death nor life, neither angels=20 nor demons, neither the present nor the future, nor any=20 powers, neither height nor depth, nor anything else in all=20 creation, will be able to separate us from the love of God that=20 is in Christ Jesus our Lord. - Romans 8:38-39 --=-Pg7tXNAGVP7oHPI6/ZnG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBA0vb+yWh1lXh/lFURArj0AJ9GgGFo9zUQyRYnkFniuQqaUYTfHgCgjV/5 wCKrJhSkzb7V2362mSTXkGA= =yBLZ -----END PGP SIGNATURE----- --=-Pg7tXNAGVP7oHPI6/ZnG--