From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Driver does not return comments for types
Date: Tue, 06 Mar 2012 20:09:08 +0100
Message-ID: <jj5ncg$m1a$1@dough.gmane.org> (raw)
Hello,
when defining a comment on a type like this:
create type footype as (id integer);
comment on type footype is 'foobar';
The driver will not return the comment in the remarks column when calling DatabaseMetaData.getTables()
The reason for this is, that AbstractJdbc2DatabaseMetaData joins pg_class against pg_description which is not correct for types as far as I can tell.
For types pg_description must be joined against pg_type (using pg_type.oid = pg_description.objid)
Not sure what the best method to integrate this into the statement used by getTables() would be though.
Regards
Thomas
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: Driver does not return comments for types
In-Reply-To: <jj5ncg$m1a$1@dough.gmane.org>
References: <jj5ncg$m1a$1@dough.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox