Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 4EAA29FA594 for ; Thu, 4 Jan 2007 18:54:27 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 18226-03 for ; Thu, 4 Jan 2007 18:54:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from www01.kensystem.com (www01.kensystem.com [72.19.170.120]) by postgresql.org (Postfix) with ESMTP id 54F319FA509 for ; Thu, 4 Jan 2007 18:54:19 -0400 (AST) Received: from 192.168.0.3 by www01.kensystem.com (SMTPD); id s20070104225414.3222; Thu, 04 Jan 2007 22:54:14 Message-ID: <459D8596.1040104@kensystem.com> Date: Thu, 04 Jan 2007 15:54:14 -0700 From: Ken Johanson User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Kris Jurka CC: pgsql-jdbc@postgresql.org Subject: Re: Support for DatabaseMetadata: getCatalogName, getTableName, References: <4594B16C.5010609@kensystem.com> <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com> <459D3487.6080202@kensystem.com> <459D3F3E.5040006@kensystem.com> <459D6CEC.9040505@kensystem.com> <459D7D66.6010202@kensystem.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/33 X-Sequence-Number: 16398 >> If so, does anyone know off hand if V3 is somehow extensible; i.e can >> we add in metadata without breaking apps or major version? >> > > No the RowDescription message is fixed: > Oh, man. > >> Again, just trying to get an idea of how near or far off this may be. >> I think there are several high level object persistence wrappers out >> there that depend (right or wrong) on table names/aliases to >> reconstitute objects from selects and natural/inner joins. >> > > It's a ways off and even if it was working you have to think about > things like self joins and calculated results. Well if the app was sending complex queries yes. But I don't think its an issue for simple data sweeps: select * from t1, t2 where t1.pk=t2.fk With getTableName its possible to build hashtable keys, etc from this even when t1 and t2 both contains a 'pk' -- which is kind of nice since one need'nt name the column in the usual tablename_pk format, and becasue the table name itself implies the tablename_pk format that would normally be assigned it's column. while (rs.next()) { for (int=1;i(Hashtable)cols) Tad off topic on my part, apologies. ken