Message-ID: From: "ldhasson (@ldhasson)" To: "pgjdbc/pgjdbc" Date: Mon, 30 Dec 2024 04:09:53 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #3467: DatabaseMetaData.getIndexInfo() doesn't return "REMARKS" property In-Reply-To: References: List-Id: X-GitHub-Author-Login: ldhasson X-GitHub-Comment-Id: 2565005835 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 3467 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/issues/3467#issuecomment-2565005835 Content-Type: text/plain; charset=utf-8 Hello! Thank you! I know about the alternative query, but that becomes PG-only. It's also a second query to run. Isn't this something that just should be supported at the JDBC level? Thank you, Laurent Hasson ________________________________ From: Shanay Shah ***@***.***> Sent: Sunday, December 29, 2024 22:57 To: pgjdbc/pgjdbc Cc: ***@***.***; Author Subject: Re: [pgjdbc/pgjdbc] DatabaseMetaData.getIndexInfo() doesn't return "REMARKS" property (Issue #3467) The "REMARKS" field does not exist as a direct part of the metadata but can be retrieved from the pg_class and pg_description tables.But if you use the other than the Postgres like Oracle or any other it is directly available in the metadata. Here how you can fetch the "REMARKS". "SELECT pg_class.relname AS index_name, pg_description.description AS comment FROM pg_class LEFT JOIN pg_description ON pg_description.objoid = pg_class.oid JOIN pg_namespace ON pg_namespace.oid = pg_class.relnamespace WHERE pg_class.relname = test_xxx_main AND pg_namespace.nspname = 'public'"; — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: ***@***.***>