My unixodbc can connect to PostgreSQL,but the unixodbc always write the wrong trace file. I set the trace file in /tmp/odbc.log but unixodbc always write it in /tmp/sql.log. Where are wrong in my setting?
---odbcinst -j---
unixODBC 2.3.2
DRIVERS............: /usr/local/unixodbc/etc/odbcinst.ini
SYSTEM DATA SOURCES: /usr/local/unixodbc/etc/odbc.ini
FILE DATA SOURCES..: /usr/local/unixodbc/etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 4
SQLLEN Size........: 4
SQLSETPOSIROW Size.: 2
---odbc.ini---
[root@mynewdb_test bin]# cat /usr/local/unixodbc/etc/odbc.ini
[PostgreSQL]
Driver = pg
Description = Test2PG
Servername = 10.2.22.155
PORT = 5444
Database = testdb
password = u1
---odbcinst.ini---
[root@mynewdb_test bin]# cat /usr/local/unixodbc/etc/odbcinst.ini
[pg]
driver=/usr/local/93AS/connectors/odbc/lib/edb-odbc.so
Trace = yes TraceFile = /tmp/odbc.log
Thank you.