For Mac only
Driver = /usr/local/lib/psqlodbcw.so
Note: the name inside the square brackets  can be anything, but you have to remember this name to call this driver later.
Note: you should look inside /usr/local/lib make sure this is the correct path to your psqlodbc driver file.
For Mac and Windows
The name of the driver should be the same as the name you gave the driver when you edited odbcinst.ini.
Make the connection using code like the following:
sslmode = "require"
Note: Insert the correct driver name returned from the previous command, as well as your correct login credentials.
Note: SSL should be On
Executing Custom SQL (more info)