Add it to your build

<dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>42.7.11</version>
</dependency>
implementation("org.postgresql:postgresql:42.7.11")

Latest release

42.7.11 28 April 2026
  • Java 8+
  • PostgreSQL 9.1+

Security release: caps SCRAM PBKDF2 iterations (CVE-2026-42198). Adds require_auth, fixes cursor fetching after BEGIN, SSL fallback/timeout handling, COPY hang on IOException, and more.

Recent: 42.7.10 · 42.7.9 · 42.7.8

Common tasks

Why pgJDBC?

  • Official driver. Endorsed by the PostgreSQL Global Development Group.
  • Pure Java, JDBC 4.2. No native libraries; runs on any JVM.
  • PostgreSQL-specific features. LISTEN/NOTIFY, COPY, logical replication, large objects, arrays.
  • Actively maintained. Regular releases with a five-year security window — see SECURITY.md.