Databases 2 min read

PostgreSQL JDBC Driver 42.2.21 Release Highlights

The PostgreSQL JDBC Driver (PgJDBC) version 42.2.21 introduces documentation updates for the deprecated DataSource API, ensures primary keys for updatable result sets, adds asynchronous notification handling, rewrites the OSGi bundle activator, and fixes metadata retrieval when search_path is not specified.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
PostgreSQL JDBC Driver 42.2.21 Release Highlights

PostgreSQL JDBC Driver (PgJDBC) allows Java programs to connect to PostgreSQL databases using standard, database‑independent Java code. It is an open‑source, pure‑Java (type‑4) driver that communicates via PostgreSQL's native network protocol.

PGJDBC team officially released version 42.2.21, a small maintenance update with the following changes:

Updated documentation to reflect the deprecated DataSource API setServerName.

Ensured that tables have defined primary keys when using updatable result sets.

Added handling for asynchronous notifications or errors after a prepared query is read.

Rewrote the OSGi bundle activator, fixing issue #2133.

Corrected database metadata getFunctions() and getProcedures() to respect search_path when no schema is specified.

JavaDatabase DriverJDBCPostgreSQLRelease NotesPGJDBC
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.