MATLAB: How to specify the Database URL String in the DATABASE function of Database Toolbox 3.4(R2007b) to connect to a POSTGRESQL database

Database Toolbox

I am trying to connect to POSTGRESQL database. I am not able to find the JDBC Driver and URL string to use them in DATABASE command to connect to my database. I would like some help on this issue.

Best Answer

For a PostGreSQL database the driver and the URL specifications are as follows:
JDBC driver: org.postgresql.DriverDatabase
URL: jdbc:postgresql://masd/DatabaseName
Please note that the Database URL string needs to have the Database name "DatabaseName" appended at the end of it.