pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stef <svb@ucs.co.za>
To: Stef <svb@ucs.co.za>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Column description in ResultSetMetaData
Date: Tue, 13 Jun 2006 10:04:06 +0200
Message-ID: <20060613100406.150c59c2@svb.ucs.co.za> (raw)
In-Reply-To: <20060612184942.53866132@svb.ucs.co.za>
References: <20060612184942.53866132@svb.ucs.co.za>

Sorry, I forgot to mention postgres 8.1.0 and 7.3.4
are the versions I'm using, so it will be the postgres drivers
for those. I'm more interested if it's possible in postgres 8.1.0

Stef mentioned :
=> Hi 
=> 
=> Is there any way to get a column's 
=> description (As defined using COMMENT ON [TABLE_NAME].COLUMN_NAME] IS )
=> and/or table name from the ResultSetMetaData or from the ResultSet,
=> without actually having to parse the SQL string to figure out what tables
=> and columns were used in the query. I would obviously only need this
=> for real columns. i.e. not columns that had functions or concatenations 
=> performed on them.
=> 
=> Can anyone think of how to do this?
=> 
=> Kind Regards
=> Stefan
=>  
=> -- 
=> Confidentiality Notice:
=> 
=> The above message and all attachments may contain privileged and
=> confidential information intended only for the person or entity to which it
=> is addressed. Any review, retransmission, dissemination, copy or other use
=> of, or taking of any action in reliance upon this information by persons or
=> entities other than the intended recipient is prohibited. If you received
=> this message in error, please notify the sender immediately by e-mail,
=> facsimile or telephone and thereafter delete the material from your
=> computer. Any views expressed in this message are those of the individual
=> sender, except where the sender specifically states them to be the view of
=> the entity transmitting the message. UCS Group Limited and all of its
=> subsidiary companies hereby distances itself from and accepts no liability
=> in respect of the unauthorized use of its e-mail facility or the sending of
=> e-mail communications for other than strictly business purposes
=> 
=> ---------------------------(end of broadcast)---------------------------
=> TIP 2: Don't 'kill -9' the postmaster
=> 


-- 
Confidentiality Notice:

The above message and all attachments may contain privileged and
confidential information intended only for the person or entity to which it
is addressed. Any review, retransmission, dissemination, copy or other use
of, or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received
this message in error, please notify the sender immediately by e-mail,
facsimile or telephone and thereafter delete the material from your
computer. Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be the view of
the entity transmitting the message. UCS Group Limited and all of its
subsidiary companies hereby distances itself from and accepts no liability
in respect of the unauthorized use of its e-mail facility or the sending of
e-mail communications for other than strictly business purposes



view thread (2+ messages)

Message-ID: <20060613100406.150c59c2@svb.ucs.co.za>
Permalink:  ../20060613100406.150c59c2@svb.ucs.co.za/
Also on:    postgresql.org/message-id/20060613100406.150c59c2@svb.ucs.co.za

 · 

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 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: svb@ucs.co.za
  Subject: Re: Column description in ResultSetMetaData
  In-Reply-To: <20060613100406.150c59c2@svb.ucs.co.za>
  References: <20060612184942.53866132@svb.ucs.co.za> <20060613100406.150c59c2@svb.ucs.co.za>

* 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