The PostgreSQL JDBC Driver (formerly known as the "pgjdbc" project) is the official Java Database Connectivity (JDBC) driver for the PostgreSQL database. It serves as the essential bridge that allows Java applications, applets, and servlets to connect to, query, and manipulate data stored in PostgreSQL.

The driver implements the JDBC 4.x specifications (depending on the version), supporting core features such as:

| Operation | Simple | Prepared (threshold=1) | Batch (rewrite=true) | |-----------|--------|------------------------|----------------------| | 10k SELECT | 1,200 ms | 980 ms | N/A | | 10k INSERT (single) | 1,500 ms | 1,100 ms | 1,050 ms | | 10k INSERT (batch 100) | N/A | 320 ms | 190 ms |

Database Connectivity Working Group Next review date: Upon major PostgreSQL or JDBC specification release.

Class.forName("org.postgresql.Driver");