X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DB508D9D23 for ; Sat, 1 Oct 2005 04:46:36 -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 74696-02 for ; Sat, 1 Oct 2005 07:46:30 +0000 (GMT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by svr1.postgresql.org (Postfix) with ESMTP id 97B13D9D0D for ; Sat, 1 Oct 2005 04:46:29 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ELc4J-0001Xa-Dn for pgsql-odbc@postgresql.org; Sat, 01 Oct 2005 09:46:03 +0200 Received: from p549395ca.dip0.t-ipconnect.de ([84.147.149.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Oct 2005 09:46:03 +0200 Received: from mailinglists by p549395ca.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Oct 2005 09:46:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org From: Hajo Kirchhoff Subject: Re: postgresql-odbc vs. unixODBC Date: Sat, 01 Oct 2005 09:45:38 +0200 Lines: 88 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p549395ca.dip0.t-ipconnect.de User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en In-Reply-To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200510/1 X-Sequence-Number: 6103 Hi, > > does anybody know what the differences are between postgresql-odbc > and unixODBC? because connection via postgresql-odbc work and > via unixODBC fails! you should check the driver versions. I think I remember seeing a post that said that the postgreSQL unixODBC is an outdated version of the postgreSQL ODBC driver that was included by the unixODBC team. At any rate I'd always use the latest driver available directly from the ODBC team here. Hajo > > here some infos: > > my /etc/odbcinst.ini: > --------------------- > [PostgreSQL] > Description = ODBC for PostgreSQL (postgresql-odbc) > Driver = /usr/lib/psqlodbc.so > FileUsage = 1 > > [PostgreSQL2] > Description = ODBC for PostgreSQL (unixODBC) > Driver = /usr/lib/libodbcpsql.so > FileUsage = 1 > > my /etc/odbc.ini: > ----------------- > [DB1] > Description = PostgreSQL > Driver = PostgreSQL > Database = DB1 > ServerName = localhost > UserName = icp > Port = 5432 > > [DB2] > Description = PostgreSQL > Driver = PostgreSQL2 > Database = DB2 > ServerName = localhost > UserName = icp > Port = 5432 > > my /var/lib/pgsql/data/pg_hba.conf: > ----------------------------------- > local DB1 uid md5 > local DB2 uid md5 > > isql DB1 uid pwd => work fine > isql DB2 uid pwd => results in "[ISQL]ERROR: Could not SQLConnect" > > any hints welcome! > > cheers, rainer > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster > -- -------------------------------------------- Lit Window Library - Speed up GUI coding 10x http://www.litwindow.com/library?src=ml wxVisualSetup - integrate wxWidgets into Visual Studio .NET http://www.litwindow.com/Products/products.html?src=ml BugLister - Defect Tracker http://www.litwindow.com/buglister?src=ml Tips & Tricks for wxWidgets & MS Visual Studio http://www.litwindow.com/Knowhow/knowhow.html?src=ml