PostgreSQL JDBC 42.7.5 returns an unexpected catalog name

From: Vinhson Nguyen <Vinhson(dot)Nguyen(at)ca(dot)ibm(dot)com>
To: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Cc: "ca_data_access_external(at)wwpdl(dot)vnet(dot)ibm(dot)com" <ca_data_access_external(at)wwpdl(dot)vnet(dot)ibm(dot)com>
Subject: PostgreSQL JDBC 42.7.5 returns an unexpected catalog name
Date: 2025-03-28 18:24:22
Message-ID: DM6PR15MB4107ADBFB245342C6A6AA03FB4A02@DM6PR15MB4107.namprd15.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-jdbc

1) Problem Description:
When upgrading our application to a new PostgreSQL JDBC driver 42.7.5 (from 42.7.4), we got an expected catalog name in the result set returned by DatabaseMetadata.getSchemas().

Expected catalog name: null (42.7.4)
Unexpected catalog name: dbcert (42.7.5)

2) Connection Info:
URL used:
jdbc:postgresql://cteds721.fyre.ibm.com:54172/dbcert

Driver name/Version:
org.postgresql.Driver/postgresql-42.7.5.jar

userID/pw: dbcert1/***********

3) Attachements:
a) PG_JDBC_42_7_4.PNG: Screenshot showing an expected catalog name (null) with driver version 42.7.4.
b) PG_JDBC_42_7_5.PNG: Screenshot showing an unexpected catalog name (dbcert) with driver version 42.7.5.
c) ImportTest.java: Java test program used in (a) and (b).

If you need any additional details, please let me know.

Thank you in advance!
Vinhson Nguyen

Attachment Content-Type Size
ImportTest.java application/octet-stream 2.0 KB
PG_JDBC_42_7_4.PNG image/png 166.3 KB
PG_JDBC_42_7_5.PNG image/png 167.9 KB

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dean Rasheed 2025-03-28 18:29:45 Re: BUG #18871: Cross-partition MERGE fails with unclear internal error
Previous Message Tender Wang 2025-03-28 16:39:58 Re: BUG #18871: Cross-partition MERGE fails with unclear internal error

Browse pgsql-jdbc by date

  From Date Subject
Next Message Laurenz Albe 2025-03-29 16:21:09 Fwd: PostgreSQL JDBC 42.7.5 returns an unexpected catalog name
Previous Message Dave Cramer 2025-02-05 13:31:11 Re: Regarding setClob and getclobval methods in PostgreSQL