Postgresql: Re: Odbc For Mac
Prerequisites ODBC Driver for PostgreSQL works under control of an ODBC driver manager. ODBC driver manager is not distributed along with our driver and must be installed separately. ODBC Driver for PostgreSQL is compatible with 2 ODBC driver managers:. In case when using other ODBC driver managers, ODBC Driver for PostgreSQL will be installed, but it will require manual modification of configuration files of these managers.
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 02:18 PM, Dmitry Pogorelov wrote: > Hi, > > Sorry for the too late answer but at last I could get free time for the > issue. Still I have the problem related to not shown table list in.
Installation To install the driver, you should download the archive containing installation files, unpack and run installation with root privileges. See the detailed description of these steps below:. from Devart website. By default, the archive will be downloaded into the /Downloads folder (or the selected one);. Run the 'Terminal' program;. Navigate to the 'Downloads' folder: cd /Users/test/Downloads. Unpack devartodbcpostgresql-osx.tar: tar -xf devartodbcpostgresql-osx.tar.
Execute the install.sh script with root user privileges and specify the password: sudo./install.sh. Read the EULA carefully. Agree to the license agreement:. Select the installation folder for ODBC Driver for PostgreSQL (or accept the suggested path):. Select the used ODBC driver manager (iODBC by default):. Specify the path (or remain the default: /Library/ODBC) to odbc.ini and odbcinst.ini files. If you have an activation key, you should create a file, for example with the 'postgresql.lic' name on your computer and paste the activation key into it.

Then, specify the path to it in order to activate the product. To add/update the postgresql.lic file to an already installed driver, you need to create/replace this file in the directory with the installed driver, and save the new activation key to it. Driver is installed successfully. After the driver is installed, two DSNs with the names DEVARTPOSTGRESQLx64 and DEVARTPOSTGRESQLx86 are created. You can use them to test connection with POSTGRESQL server, we will use DEVARTPOSTGRESQLx64 as a sample. Now perform the following steps:.
Open the odbc.ini file, the location of which was indicated during the installation. Find the DEVARTPOSTGRESQLx64 section and specify the required connection settings: User ID= Password= Host= Port= Database=. Run the iODBC Test Command utility and test connection using the following command: DSN=DEVARTPOSTGRESQLx64 See also:.
Installnametool -change libssl.1.0.0.dylib /Library/ODBC/PSQL/lib/libssl.1.0.0.dylib /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so installnametool -change libpq.5.dylib /Library/ODBC/PSQL/lib/libpq.5.dylib /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so installnametool -change /Library/Frameworks/iODBC.framework/Versions/3.52/iODBC /Library/ODBC/PSQL/lib/iODBC /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so installnametool -change /Library/Frameworks/iODBCinst.framework/Versions/3.52/iODBCinst /Library/ODBC/PSQL/lib/iODBCinst /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so. 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.
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.
Could you please help me to solve the problem related to LibreOffice (couldn't get list of tables) and Excel 2016? HiI'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.tar.gz ):./configure CFLAGS='-arch i386 -D ENABLEMYLOG' -with-iodbc=/usr/local/iODBC -with-libpq=/Library/PostgreSQL/9.4 make I've also built the latest version (3.52.10) of iODBC by the instruction from 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/iODBC2. 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. HiSorry for the too late answer but at last I could get free time for the issue. Still I have the problem related to not shown table list in LibreOffice. I've built the latest version of 32/64 bit postgresql odbc driver but already under El Capitan OS X (10.11.3) with iODBC 3.52. I've tried to use the driver by different versions of 32 bit LibreOffice - didn't help. I turned on mylog and got logs (attached).
There was just only one 'testtable' table with one 'a' column. In LibreOffice in tables I saw only empty list, without any tables. I gave up on LO/OO Base as a database frontend some time ago as it's performance was spotty at best. I do remember that LO/OO was finicky about there being a primary key on a table.
Does the table you mention have a primary key? Best RegardsDmitry Best Regards Dmitry Pogorelov. On 02:18 PM, Dmitry Pogorelov wrote: Hi, Sorry for the too late answer but at last I could get free time for the issue. Still I have the problem related to not shown table list in LibreOffice. I've built the latest version of 32/64 bit postgresql odbc driver but already under El Capitan OS X (10.11.3) with iODBC 3.52. I've tried to use the driver by different versions of 32 bit LibreOffice - didn't help. I turned on mylog and got logs (attached).
Postgresql Odbc Windows

There was just only one 'testtable' table with one 'a' column. In LibreOffice in tables I saw only empty list, without any tables.
I gave up on LO/OO Base as a database frontend some time ago as it's performance was spotty at best. I do remember that LO/OO was finicky about there being a primary key on a table. Does the table you mention have a primary key?

Best Regards, Dmitry Best Regards Dmitry Pogorelov All I can think to do is enable MyLog and/or CommLog: 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 - Adrian Klaver - Sent via pgsql-odbc mailing list To make changes to your subscription.