Message-ID: From: "hlcianfagna (@hlcianfagna)" To: "pgjdbc/pgjdbc" Date: Mon, 10 Mar 2025 14:37:31 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #3533: refactor: Use key_column_usage instead of indnkeyatts in PgDatabaseMetaData for faster speed and improved compatibility In-Reply-To: References: List-Id: X-GitHub-Author-Login: hlcianfagna X-GitHub-Comment-Id: 1987430908 X-GitHub-Comment-Type: review_comment X-GitHub-Commit: 8c8e4fe6997bbc1c183302d9d5d5cc4a53be5c4a X-GitHub-Issue: 3533 X-GitHub-Line: 2347 X-GitHub-Path: pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: review_comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3533#discussion_r1987430908 Content-Type: text/plain; charset=utf-8 (on pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java:2347) This has not changed since I forked this branch, but in the version I am proposing I have `table_catalog=current_database()` in the `WHERE` clause so I can select `table_catalog` as `TABLE_CAT`