Download the psqlODBC source tarball from here. Use the latest version available for download. Extract this tarball to a directory in your hard drive and open a terminal and cd into that directory.
Type this in the terminal window:
// I just used configure without flags.. I imagine this works too.
$> ./configure --with-iodbc --enable-pthreads
$> make
$> sudo make install
Verify that you have the file psqlodbcw.so in the /usr/local/lib directory.
On hana server login as the hdbadm user, the one hana creates for the sap hana system.
You should then be routed to the hdbadm home directory.
create a file .odbc.ini. As i did above.
I would do a find for the three files noted above
find / -name psqlodbcw.so
find / -name libodbcpsqlS.so
the path to these files are explicitly set on the .odbc.ini
It was my understanding that some features are set in a properties file.
find / -name property_orcl.ini
change directory into the path of the file found above.
copy the contents to another file.
cp property_orcl.ini property_postresql.ini
good luck.