Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMH3H-0001Y2-Rx for pgsql-odbc@arkaria.postgresql.org; Mon, 03 Aug 2015 14:49:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZMH3G-00044Q-Tw for pgsql-odbc@arkaria.postgresql.org; Mon, 03 Aug 2015 14:49:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZMH3G-00044H-AV for pgsql-odbc@postgresql.org; Mon, 03 Aug 2015 14:49:18 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZMH34-00026G-Lg for pgsql-odbc@postgresql.org; Mon, 03 Aug 2015 14:49:17 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 17A462063F for ; Mon, 3 Aug 2015 10:49:04 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 03 Aug 2015 10:49:04 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=m6VjbunjAWJZCKFiwjjkaMl1Gxc=; b=SmgGSG uyXav+bbzZXLJPv/lIsneIC4UfeDgqFswz5tgUgt+lt45pJ0FqZZMtWHGRAG/q8o 7tsfovDIwMCk8rpVDLXhqNtPvABLzXGFU9h6MQ/bkf9OSCkfzXD7/eNEC4RfYebO 0SVbz51uU8K7Rdx5ja5H4aplfq1OdvW6NvAO0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=m6VjbunjAWJZCKF iwjjkaMl1Gxc=; b=NuY5u1VK9IEKbMCkO4tDalIybJ/0nDt/NmQBg+rENgFV/N+ ODev85ODBvT3uAnqSku/GH6jOSYxHL84IHlh1Gm6nYZ7/IxMRm7UVFEDGqHgaMSn pGwSezsSJXIU5yB+yvY+NQL5iNh+no7zh2QhyOXPoFiLT63++BKhwb+FJAVQ= X-Sasl-enc: kogCAzTVPKfhKjxpKhvYv4L+EkTNNu9pIwa8rqPhK9N0 1438613343 Received: from [192.168.1.3] (174-21-248-106.tukw.qwest.net [174.21.248.106]) by mail.messagingengine.com (Postfix) with ESMTPA id 8CCF6C00021; Mon, 3 Aug 2015 10:49:03 -0400 (EDT) Subject: Re: PSQL iODBC driver on mac os x 10.10.3 (Yosemite) To: Dmitry Pogorelov , pgsql-odbc@postgresql.org References: From: Adrian Klaver Message-ID: <55BF7F50.9020303@aklaver.com> Date: Mon, 3 Aug 2015 07:48:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 08/02/2015 12:13 PM, Dmitry Pogorelov wrote: > Hi, > > I've got postges 9.4 installed on Mac OS X 10.10.3 (Yosemite) I have > access to it from psql and I have set up and filled a database I now > want to access via ODBC - all on the localhost, no remote access > involved. To get the 32 bit PSQL iODBC driver I've run the following > command on the latest source code (psqlodbc-09.03.0400.tar.gz > ): > > > ./configure CFLAGS="-arch i386 -D ENABLE_MYLOG" > --with-iodbc=/usr/local/iODBC --with-libpq=/Library/PostgreSQL/9.4 > > make > > I've also built the latest version (3.52.10) of iODBC > (https://github.com/openlink/iODBC) by the instruction from > https://github.com/openlink/iODBC/blob/develop/README.MACOSX link (see > method 1). > > Further I copied the built in first step PSQL iODBC driver to > /Library/ODBC/PSQL/bin/iODBC/ folder, I also added all necessaries libs: > 1. iODBC from /Library/Frameworks/iODBC.framework/Versions/3.52/iODBC, > 2. iODBCinst from > /Library/Frameworks/iODBCinst.framework/Versions/3.52/iODBCinst > 3. libpq.5.dylib from /Library/PostgreSQL/9.4/lib/libpq.5.7.dylib > (renamed it to libpq.5.dylib) > 4. libssl.1.0.0.dylib from /usr/local/Cellar/openssl/1.0.2/lib > (installed openssl via brew) > to /Library/ODBC/test/lib folder and changed paths to .dylib in built > psql driver by the following commands: > > install_name_tool -change libssl.1.0.0.dylib > /Library/ODBC/PSQL/lib/libssl.1.0.0.dylib > /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so > > install_name_tool -change libpq.5.dylib > /Library/ODBC/PSQL/lib/libpq.5.dylib > /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so > > install_name_tool -change > /Library/Frameworks/iODBC.framework/Versions/3.52/iODBC > /Library/ODBC/PSQL/lib/iODBC /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so > > install_name_tool -change > /Library/Frameworks/iODBCinst.framework/Versions/3.52/iODBCinst > /Library/ODBC/PSQL/lib/iODBCinst /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so > > I've also created odbc.ini and odbcinst.ini files in /Library/ODBC > folder. The odbc.ini contains: > > [ODBC Data Sources] > > PSQL_Unicode_32 =PSQL iODBC Driver 32 bit (Unicode) > > [PSQL_Unicode_32] > > Driver =/Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so > > ServerName =127.0.0.1 > > Port =5432 > > Database =test_tables > > Username =postgres > > Password =sa > > UpdatableCursors =false > > The odbcinst.ini contains: > > [ODBC Drivers] > > PSQL iODBC Driver 32 bit (Unicode) =Installed > > [PSQL iODBC Driver 32 bit (Unicode)] > > Driver =/Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so > > Setup = > > In the OpenLink ODBC Administrator I can see the configured odbc driver > and the driver also passes test connection. > Further I installed LibreOffice 4.3.7 32 bit to check the PSQL Driver 32 > bit. So when I tried to connect to PostgreSQL via PSQL iODBC driver I > couldn't get list of tables though sql queries worked correctly (the > problem was only in getting of list tables). After that I installed the > latest version of Microsoft Excel 2016 on mac (Microsoft Office for mac > is supplied as 32 bit so far), when I also tried to connect to > PostgreSQL via PSQL iODBC driver the Excel just hanged though on Windows > both LibreOffice of the same version and Excel worked correctly. Could > you please help me to solve the problem related to LibreOffice (couldn't > get list of tables) and Excel 2016? > Thank you in advance. All I can think to do is enable MyLog and/or CommLog: https://odbc.postgresql.org/docs/config.html and see what happens when you use LO or Excel. FYI, logging in particular MyLog, will really slow things down. > > Best Regards > Dmitry Pogorelov -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc