pgjdbc/pgjdbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: Shanayshah44 (@Shanayshah44) <[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 03:57:16 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

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'";

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