Message-ID: From: "Shanayshah44 (@Shanayshah44)" To: "pgjdbc/pgjdbc" Date: Mon, 30 Dec 2024 03:57:16 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #3467: DatabaseMetaData.getIndexInfo() doesn't return "REMARKS" property In-Reply-To: References: List-Id: X-GitHub-Author-Login: Shanayshah44 X-GitHub-Comment-Id: 2565000122 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-2565000122 Content-Type: text/plain; charset=utf-8 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'";