X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D6B0D9FA5E7 for ; Tue, 13 Jun 2006 05:04:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 43808-05 for ; Tue, 13 Jun 2006 05:04:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from ucsns.ucs.co.za (ucsns.ucs.co.za [196.23.43.2]) by postgresql.org (Postfix) with ESMTP id E358D9F9CAA for ; Tue, 13 Jun 2006 05:04:07 -0300 (ADT) Received: from ucspost.ucs.co.za (ucspost.ucs.co.za [196.23.43.3]) by ucsns.ucs.co.za (Postfix) with ESMTP id 4DB3E2BD60 for ; Tue, 13 Jun 2006 10:04:06 +0200 (SAST) Received: from jhb.ucs.co.za (jhb.ucs.co.za [172.31.1.3]) by ucspost.ucs.co.za (Postfix) with ESMTP id 41F08D9DFE for ; Tue, 13 Jun 2006 10:04:06 +0200 (SAST) Received: from svb.ucs.co.za (svb.ucs.co.za [172.31.1.148]) by jhb.ucs.co.za (Postfix) with ESMTP id 2D67997DB9; Tue, 13 Jun 2006 10:04:06 +0200 (SAST) Date: Tue, 13 Jun 2006 10:04:06 +0200 From: Stef To: Stef Cc: pgsql-jdbc@postgresql.org Subject: Re: Column description in ResultSetMetaData Message-ID: <20060613100406.150c59c2@svb.ucs.co.za> In-Reply-To: <20060612184942.53866132@svb.ucs.co.za> References: <20060612184942.53866132@svb.ucs.co.za> X-Mailer: Sylpheed-Claws 2.2.0cvs70 (GTK+ 2.8.18; i686-pc-linux-gnu) Face: /9j/4AAQSkZJRgABAQEASABIAAD/4QAWRXhpZgAATU0AKgAAAAgAAAAAAAD//gBIQ1JFQVRP UjogWFYgVmVyc2lvbiAzLjEwYSAgUmV2OiAxMi8yOS85NCAgUXVhbGl0eSA9IDgwLCBTbW9v dGhpbmcgPSAwCv/bAEMABQMEBAQDBQQEBAUFBQYHDAgHBwcHDwsLCQwRDxISEQ8RERMWHBcT FBoVEREYIRgaHR0fHx8TFyIkIh4kHB4fHv/bAEMBBQUFBwYHDggIDh4UERQeHh4eHh4eHh4e Hh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHv/AABEIADAAMAMBIgAC EQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAFBgQHAgMIAAH/xAAtEAABAwMDAwQBAwUAAAAA AAABAgMEAAURBhIhMUFRBxMiYZEUgcEVQlJTcf/EABgBAQEBAQEAAAAAAAAAAAAAAAQDAgAF /8QAJBEAAgIBAwMFAQAAAAAAAAAAAQIAAxEEEiEUMfATIkFhgeH/2gAMAwEAAhEDEQA/AOQb VDE+YzF95plTq9oW4SEgnpnFF71o6+2obpEFbjf+xj5pI85H80OtSQSSUbu9WhLvUu36LtM1 haXH5LhbVvyQNvXP30rd1b1orjkHiJWpdm4ynwgpOFDAz0PFZKcCXMtpASOgPNXto57T2q5C Yd0t0Ru4KGUb20qC8eCRTFcfTTT1207Jj/o2YryHVFqQwgJWk4A5x1GR0NDbUhThhOXTFhlT OZNyCBlIBr6kICgo8imXVWhL9YpCwYypcdJOHmAVDH2OopYwUgpIwfsUhXDDIkGBXgiT4kz2 mw2EYJ70z2Cc3OtTlhnuFppbgfjPYz7LoGOR3SRwfzQA2xtLFucbeW4ZadyhtxsIWUkA556A /vU2d7ds1FIjRlqW3HkLbQVkZIScc9qXk21emfyUWw4wY8ab0xqRqQFsuRPbZWh73W Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/29 X-Sequence-Number: 15309 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