pgjdbc/pgjdbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: ldhasson (@ldhasson) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: Re: [pgjdbc/pgjdbc] issue #3467: DatabaseMetaData.getIndexInfo() doesn't return "REMARKS" property
Date: Mon, 30 Dec 2024 04:09:53 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

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<https://github.com/pgjdbc/pgjdbc/issues/3467#issuecomment-2565000122;, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADEHBZQFT3JBMWIWD3XTJT2IDADDAVCNFSM6AAAAABUB2ZFOG...;.
You are receiving this because you authored the thread.Message ID: ***@***.***>


view thread (11+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: github://pgjdbc/pgjdbc
  Cc: [email protected], [email protected]
  Subject: Re: [pgjdbc/pgjdbc] issue #3467: DatabaseMetaData.getIndexInfo() doesn't return "REMARKS" property
  In-Reply-To: <<[email protected]>>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox