Download PostgreSQL JDBC Driver

What are JDBC Drivers ?

JDBC drivers are Java library files with the extension .jar used by all Java applications to connect to the database. Usually they are provided by the same company which implemented the PostgreSQL software. DbSchema Tool already include an PostgreSQL driver, which is automatically downloaded when you connect to PostgreSQL.

What is the JDBC URL ?

Each JDBC driver is using a specific URL. The URL is a string (text) with a specific format, containing information about the host where the database is running, the port, username, database name, etc. The format is specific to each driver. Any wrong character in the URL may make the database connectivity fail, therefore we recommend to install DbSchema and try to get connected. Then you can find the right URL directly in the DbSchema connection dialog.

Driver Information

  • Required File(s): postgresql-nn.jdbc3.jar
  • Java Driver Class: org.postgresql.Driver
  • URL: jdbc:postgresql://{HOST}[:{PORT}]/{DB}
  • Website: PostgreSQL
If you want to connect to Heroku Postgresql web-based database, please edit the JDBC driver URL ( in Driver Manager dialog ) and append ?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory in the end.

Download PostgreSQL JDBC Driver

The driver files are compressed in a zip file.

Please write us if this version of the driver is not the latest, we will update it !

Test the JDBC Driver and the Build the JDBC URL Using DbSchema

Installing DbSchema may help to test the database connectivity and the JDBC driver URL. DbSchema can be downloaded and installed for free.

Free Download DbSchema

After downloading please follow this steps:

  1. 1 Select an Alias for your database connection. This will be the name of this specific connection to the database.
  2. 2 Select 'PostgreSQL' from the lilt of DBMS (Database Management Systems).
  3. 3 The driver for your database will be automatically downloaded for you in the folder
    • C:\Users\YourUser\.DbSchema\drivers\PostgreSQL (Windows) or
    • /Users/YourUser/.DbSchema/drivers/PostgreSQL (Linux and MacOS).
    Every database can have different methods of connection. You can change them from the dropdown menu.
Choose database and alias
  1. 4

    There are two tab you can use to connect. 'Compose URL' will ask for host, port, username, etc. and will create the JDBC URL for you.

    The 'Edit URL' will let you directly enter the JDBC URL.

    You can use the first tab to connect, and then see the created URL in the second tab.

Compose URL Tab Edit URL Tab
  1. 5 If connectivity succeeds, you should get your first DbSchema project and first diagrams.
Database Diagram

Connectivity Troubleshooting

If you get problems connecting to database, please remember :
  • Press the ping button in the connection dialog to make sure the host and port are reachable.
Further connectivity tips can be found in PostgreSQL Connectivity Tips page.