To successfully migrate DB2 applications to PostgreSQL, you must establish a connection to PostgreSQL via ODBC.
To set up your environment correctly, consult both unixODBC and PostgreSQL Linux ODBC driver documentation, which explains how to properly configure your odbcinst.ini and odbc.ini files.
For ODBC connectivity, we recommend that you always use the most recent supported version of the ODBC provider available when creating new connections. We also recommend that you upgrade existing connections to use the most recent provider when possible.